cregit-Linux how code gets into the kernel

Release 4.12 include/linux/device_cgroup.h

Directory: include/linux
#include <linux/fs.h>

#ifdef CONFIG_CGROUP_DEVICE
extern int __devcgroup_inode_permission(struct inode *inode, int mask);
extern int devcgroup_inode_mknod(int mode, dev_t dev);

static inline int devcgroup_inode_permission(struct inode *inode, int mask) { if (likely(!inode->i_rdev)) return 0; if (!S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode)) return 0; return __devcgroup_inode_permission(inode, mask); }

Contributors

PersonTokensPropCommitsCommitProp
Al Viro57100.00%1100.00%
Total57100.00%1100.00%

#else
static inline int devcgroup_inode_permission(struct inode *inode, int mask) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Serge E. Hallyn18100.00%1100.00%
Total18100.00%1100.00%


static inline int devcgroup_inode_mknod(int mode, dev_t dev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Serge E. Hallyn16100.00%1100.00%
Total16100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Serge E. Hallyn6753.60%150.00%
Al Viro5846.40%150.00%
Total125100.00%2100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.