aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack_lsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/smack/smack_lsm.c')
-rw-r--r--security/smack/smack_lsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 787dcf12f15c..9a99f3c485cb 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -1018,7 +1018,7 @@ static int smack_inode_removexattr(struct dentry *dentry, const char *name)
1018 strcmp(name, XATTR_NAME_SMACKIPOUT) == 0 || 1018 strcmp(name, XATTR_NAME_SMACKIPOUT) == 0 ||
1019 strcmp(name, XATTR_NAME_SMACKEXEC) == 0 || 1019 strcmp(name, XATTR_NAME_SMACKEXEC) == 0 ||
1020 strcmp(name, XATTR_NAME_SMACKTRANSMUTE) == 0 || 1020 strcmp(name, XATTR_NAME_SMACKTRANSMUTE) == 0 ||
1021 strcmp(name, XATTR_NAME_SMACKMMAP)) { 1021 strcmp(name, XATTR_NAME_SMACKMMAP) == 0) {
1022 if (!smack_privileged(CAP_MAC_ADMIN)) 1022 if (!smack_privileged(CAP_MAC_ADMIN))
1023 rc = -EPERM; 1023 rc = -EPERM;
1024 } else 1024 } else
@@ -2156,7 +2156,7 @@ static int smack_inode_setsecurity(struct inode *inode, const char *name,
2156 int rc = 0; 2156 int rc = 0;
2157 2157
2158 if (value == NULL || size > SMK_LONGLABEL || size == 0) 2158 if (value == NULL || size > SMK_LONGLABEL || size == 0)
2159 return -EACCES; 2159 return -EINVAL;
2160 2160
2161 skp = smk_import_entry(value, size); 2161 skp = smk_import_entry(value, size);
2162 if (skp == NULL) 2162 if (skp == NULL)