Stephen Smalley <[email protected]> wrote:
> Otherwise, only other issue I have with this interface is it won't
> generalize to dealing with nfsd, where we want to set the acting context
> to a context we obtain from or determine based upon the client.
Are you speaking of security_kernel_act_as() and security_create_files_as()
specifically? Or the task_struct::act_as override pointer in general?
I don't really know how nfsd wants to obtain and set its LSM context, so it's
a bit difficult for me to make something that works for nfsd as well as
cachefiles.
> Why can't cachefilesd just push a context into the kernel and pass that
> into the hook as the acting context,
How does cachefilesd come up with such a context? Grab it from
/etc/cachefilesd.conf?
I use to do that, but someone objected... Possibly Karl MacMillan.
> and then nfsd can do likewise using the context provided by the client or
> obtained locally from exports for ordinary clients? Avoids the transition
> SID computation altogether within the kernel and makes this more generic.
I seem to remember that I was told that it should be done this way, possibly
by Karl MacMillan, but I don't remember exactly.
Now it's configured by cachefilesd.te:
type_transition cachefilesd_t kernel_t : process cachefiles_kernel_t;
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]