函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:security\security.c Create Date:2022-07-27 20:13:16
首页 Copyright©Brick

1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
int security_inode_removexattr(struct dentry *dentry, const char *name)
{
    int ret;
 
    if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
        return 0;
    /*
     * SELinux and Smack integrate the cap call,
     * so assume that all LSMs supplying this call do so.
     */
    ret = call_int_hook(inode_removexattr, 1, dentry, name);
    if (ret == 1)
        ret = cap_inode_removexattr(dentry, name);
    if (ret)
        return ret;
    ret = ima_inode_removexattr(dentry, name);
    if (ret)
        return ret;
    return evm_inode_removexattr(dentry, name);
}