https://github.com/torvalds/linux
Revision e0007529893c1c064be90bd21422ca0da4a0198e authored by Eric Paris on 05 March 2008, 15:31:54 UTC, committed by James Morris on 05 March 2008, 21:40:53 UTC
Introduce new LSM interfaces to allow an FS to deal with their own mount
options.  This includes a new string parsing function exported from the
LSM that an FS can use to get a security data blob and a new security
data blob.  This is particularly useful for an FS which uses binary
mount data, like NFS, which does not pass strings into the vfs to be
handled by the loaded LSM.  Also fix a BUG() in both SELinux and SMACK
when dealing with binary mount data.  If the binary mount data is less
than one page the copy_page() in security_sb_copy_data() can cause an
illegal page fault and boom.  Remove all NFSisms from the SELinux code
since they were broken by past NFS changes.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
1 parent 29e8c3c
History
Tip revision: e0007529893c1c064be90bd21422ca0da4a0198e authored by Eric Paris on 05 March 2008, 15:31:54 UTC
LSM/SELinux: Interfaces to allow FS to control mount options
Tip revision: e000752
File Mode Size
Makefile -rw-r--r-- 318 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 4.1 KB
mqueue.c -rw-r--r-- 29.8 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 1.7 KB
sem.c -rw-r--r-- 33.7 KB
shm.c -rw-r--r-- 27.1 KB
util.c -rw-r--r-- 21.1 KB
util.h -rw-r--r-- 4.5 KB

back to top