diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smack_lsm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index afa5ad0e7f72..16ae8534b14c 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -672,7 +672,7 @@ static int smack_inode_init_security(struct inode *inode, struct inode *dir, | |||
672 | } | 672 | } |
673 | 673 | ||
674 | if (len) | 674 | if (len) |
675 | *len = strlen(isp) + 1; | 675 | *len = strlen(isp); |
676 | 676 | ||
677 | return 0; | 677 | return 0; |
678 | } | 678 | } |
@@ -1076,7 +1076,7 @@ static int smack_inode_getsecurity(const struct inode *inode, | |||
1076 | 1076 | ||
1077 | if (strcmp(name, XATTR_SMACK_SUFFIX) == 0) { | 1077 | if (strcmp(name, XATTR_SMACK_SUFFIX) == 0) { |
1078 | isp = smk_of_inode(inode); | 1078 | isp = smk_of_inode(inode); |
1079 | ilen = strlen(isp) + 1; | 1079 | ilen = strlen(isp); |
1080 | *buffer = isp; | 1080 | *buffer = isp; |
1081 | return ilen; | 1081 | return ilen; |
1082 | } | 1082 | } |
@@ -1101,7 +1101,7 @@ static int smack_inode_getsecurity(const struct inode *inode, | |||
1101 | else | 1101 | else |
1102 | return -EOPNOTSUPP; | 1102 | return -EOPNOTSUPP; |
1103 | 1103 | ||
1104 | ilen = strlen(isp) + 1; | 1104 | ilen = strlen(isp); |
1105 | if (rc == 0) { | 1105 | if (rc == 0) { |
1106 | *buffer = isp; | 1106 | *buffer = isp; |
1107 | rc = ilen; | 1107 | rc = ilen; |