diff options
author | 2024-07-24 10:06:59 +0800 | |
---|---|---|
committer | 2024-07-31 14:47:09 -0400 | |
commit | 924e19c39e8f0bbd581ab8a049f95a0ed02235b1 (patch) | |
tree | 19035cdf88e11452b06828295b4cd4b372d46fd6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | lsm: Refactor return value of LSM hook vm_enough_memory (diff) | |
download | wireguard-linux-924e19c39e8f0bbd581ab8a049f95a0ed02235b1.tar.xz wireguard-linux-924e19c39e8f0bbd581ab8a049f95a0ed02235b1.zip |
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 <xukuohai@huawei.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions