struct cred

新结构体定义如下:
struct cred { 
        atomic_t        usage; 
        uid_t           uid;            /* real UID of the task */ 
        gid_t           gid;            /* real GID of the task */ 
        uid_t           suid;           /* saved UID of the task */ 
        gid_t           sgid;           /* saved GID of the task */ 
        uid_t           euid;           /* effective UID of the task */ 
        gid_t           egid;           /* effective GID of the task */ 
        uid_t           fsuid;          /* UID for VFS ops */ 
        gid_t           fsgid;          /* GID for VFS ops */ 
        unsigned        securebits;     /* SUID-less security management */ 
        kernel_cap_t    cap_inheritable; /* caps our children can  inherit */ 
        kernel_cap_t    cap_permitted;  /* caps we're permitted */ 
        kernel_cap_t    cap_effective;  /* caps we can actually use */ 
        kernel_cap_t    cap_bset;       /* capability bounding set */ 
#ifdef CONFIG_KEYS 
        unsigned char   jit_keyring;    /* default keyring to attach  
requested keys to */ 
        struct key      *thread_keyring; /* keyring private to this  
thread */ 
        struct key      *request_key_auth; /* assumed request_key  
authority */ 
        struct thread_group_cred *tgcred; /* thread-group shared  
credentials */ 
 #endif 
 #ifdef CONFIG_SECURITY 
        void            *security;      /* subjective LSM security */ 
 #endif 
        struct user_struct *user;       /* real user ID subscription */ 
        struct group_info *group_info;  /* supplementary groups for  
euid/fsgid */ 
        struct rcu_head rcu;            /* RCU deletion hook */ 
};

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值