lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250506181630.8665-1-kuniyu@amazon.com>
Date: Tue, 6 May 2025 11:16:24 -0700
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <memxor@...il.com>
CC: <andrii@...nel.org>, <ast@...nel.org>, <bpf@...r.kernel.org>,
	<brauner@...nel.org>, <casey@...aufler-ca.com>, <daniel@...earbox.net>,
	<eddyz87@...il.com>, <gnoack@...gle.com>, <haoluo@...gle.com>,
	<jmorris@...ei.org>, <john.fastabend@...il.com>, <jolsa@...nel.org>,
	<kpsingh@...nel.org>, <kuni1840@...il.com>, <kuniyu@...zon.com>,
	<linux-security-module@...r.kernel.org>, <martin.lau@...ux.dev>,
	<mic@...ikod.net>, <netdev@...r.kernel.org>, <omosnace@...hat.com>,
	<paul@...l-moore.com>, <sdf@...ichev.me>, <selinux@...r.kernel.org>,
	<serge@...lyn.com>, <song@...nel.org>, <stephen.smalley.work@...il.com>,
	<yonghong.song@...ux.dev>
Subject: Re: [PATCH v1 bpf-next 0/5] af_unix: Allow BPF LSM to scrub SCM_RIGHTS at sendmsg().

From: Kumar Kartikeya Dwivedi <memxor@...il.com>
Date: Tue, 6 May 2025 18:25:14 +0200
> Given you're probably going to drop scrubbing, all you'd need is to
> pass the pointer to file to inspect is f = bpf_core_cast(&fpl->fp[i],
> struct file).

Ah, I totally forgot bpf_core_cast().


> Then just find out the type of file using f->f_ops == something and if
> a disallowed file type is seen, return the verdict.

I'll change selftest as such.

Thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ