Thread (21 messages) 21 messages, 8 authors, 2020-06-26

Re: [RFC][PATCH] net/bpfilter: Remove this broken and apparently unmantained

From: Stephen Smalley <stephen.smalley.work@gmail.com>
Date: 2020-06-25 14:36:14
Also in: bpf, linux-fsdevel

Possibly related (same subject, not in this thread)

On Thu, Jun 25, 2020 at 10:26 AM Stephen Smalley
[off-list ref] wrote:
On Thu, Jun 25, 2020 at 9:25 AM Greg Kroah-Hartman
[off-list ref] wrote:
quoted
On Thu, Jun 25, 2020 at 08:56:10AM -0400, Stephen Smalley wrote:
quoted
No, because we cannot label the inode based on the program's purpose
and therefore cannot configure an automatic transition to a suitable
security context for the process, unlike call_usermodehelper().
Why, what prevents this?  Can you not just do that based on the "blob
address" or signature of it or something like that?  Right now you all
do this based on inode of a random file on a disk, what's the difference
between a random blob in memory?
Given some kind of key to identify the blob and look up a suitable
context in policy, I think it would work.  We just don't have that
with the current interface.  With /bin/kmod and the like, we have a
security xattr assigned to the file when it was created that we can
use as the basis for determining the process security context.
Looks like info->cmdline could be used as that key if set; we would
just need a LSM hook to permit setting up the inode's security state
based on that key.  If that were passed to shmem_kernel_file_setup()
as the name argument, then that might also help path-based LSMs
although it seems potentially ambiguous.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help