Commit 924e19c
lsm: Refactor return value of LSM hook inode_copy_up_xattr
To be consistent with most LSM hooks, convert the return value of
hook inode_copy_up_xattr to 0 or a negative error code.
Before:
- Hook inode_copy_up_xattr returns 0 when accepting xattr, 1 when
discarding xattr, -EOPNOTSUPP if it does not know xattr, or any
other negative error code otherwise.
After:
- Hook inode_copy_up_xattr returns 0 when accepting xattr, *-ECANCELED*
when discarding xattr, -EOPNOTSUPP if it does not know xattr, or
any other negative error code otherwise.
Signed-off-by: Xu Kuohai <[email protected]>
Reviewed-by: Casey Schaufler <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent be72a57 commit 924e19c
File tree
5 files changed
+12
-17
lines changed- fs/overlayfs
- security
- integrity/evm
- selinux
- smack
5 files changed
+12
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 118 | + | |
121 | 119 | | |
122 | 120 | | |
123 | 121 | | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | | - | |
| 1003 | + | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2674 | 2674 | | |
2675 | 2675 | | |
2676 | 2676 | | |
2677 | | - | |
2678 | | - | |
2679 | | - | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
2680 | 2680 | | |
2681 | 2681 | | |
2682 | 2682 | | |
2683 | 2683 | | |
2684 | 2684 | | |
2685 | | - | |
2686 | | - | |
2687 | | - | |
2688 | | - | |
2689 | | - | |
2690 | 2685 | | |
2691 | 2686 | | |
2692 | 2687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3531 | 3531 | | |
3532 | 3532 | | |
3533 | 3533 | | |
3534 | | - | |
3535 | | - | |
| 3534 | + | |
| 3535 | + | |
3536 | 3536 | | |
3537 | 3537 | | |
3538 | 3538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4910 | 4910 | | |
4911 | 4911 | | |
4912 | 4912 | | |
4913 | | - | |
| 4913 | + | |
4914 | 4914 | | |
4915 | | - | |
4916 | | - | |
| 4915 | + | |
| 4916 | + | |
4917 | 4917 | | |
4918 | 4918 | | |
4919 | 4919 | | |
| |||
0 commit comments