]> git.karo-electronics.de Git - linux-beck.git/commit
smack: allow mount opts setting over filesystems with binary mount data
authorVivek Trivedi <t.vivek@samsung.com>
Mon, 22 Jun 2015 10:06:06 +0000 (15:36 +0530)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 22 Jul 2015 19:31:28 +0000 (12:31 -0700)
commit3bf2789cad9e6573dc19a6c3d123c2c049f2d90f
tree35d1609228bbaee7231478f0ee7538bbb39420e1
parentfe6c59dc17908effd4e2caa666795b9ad984005b
smack: allow mount opts setting over filesystems with binary mount data

Add support for setting smack mount labels(using smackfsdef, smackfsroot,
smackfshat, smackfsfloor, smackfstransmute) for filesystems with binary
mount data like NFS.

To achieve this, implement sb_parse_opts_str and sb_set_mnt_opts security
operations in smack LSM similar to SELinux.

Signed-off-by: Vivek Trivedi <t.vivek@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack.h
security/smack/smack_lsm.c