diff options
author | Eric Paris <eparis@redhat.com> | 2012-08-24 21:59:07 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-07-25 19:03:21 +0200 |
commit | a64c54cf0811b8032fdab8c9d52576f0370837fa (patch) | |
tree | 2fb17477db2ba91fb2043ece739a898f369b1b36 /security/selinux/hooks.c | |
parent | SELinux: do not handle seclabel as a special flag (diff) | |
download | linux-a64c54cf0811b8032fdab8c9d52576f0370837fa.tar.xz linux-a64c54cf0811b8032fdab8c9d52576f0370837fa.zip |
SELinux: pass a superblock to security_fs_use
Rather than passing pointers to memory locations, strings, and other
stuff just give up on the separation and give security_fs_use the
superblock. It just makes the code easier to read (even if not easier to
reuse on some other OS)
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 5596dc51e21b..ec15a5694b9e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -677,7 +677,7 @@ static int selinux_set_mnt_opts(struct super_block *sb, sbsec->flags |= SE_SBPROC; /* Determine the labeling behavior to use for this filesystem type. */ - rc = security_fs_use(sb->s_type->name, &sbsec->behavior, &sbsec->sid); + rc = security_fs_use(sb); if (rc) { printk(KERN_WARNING "%s: security_fs_use(%s) returned %d\n", __func__, sb->s_type->name, rc); |