Searched refs:sb (Results 1 - 11 of 11) sorted by relevance

/security/tomoyo/
H A Drealpath.c150 struct super_block *sb = dentry->d_sb; local
155 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') {
159 task_tgid_nr_ns(current, sb->s_fs_info)) {
168 if (!MAJOR(sb->s_dev))
171 struct inode *inode = sb->s_root->d_inode;
183 const dev_t dev = sb->s_dev;
197 const char *name = sb->s_type->name;
256 struct super_block *sb; local
259 sb = dentry->d_sb;
271 if (sb
[all...]
/security/selinux/
H A Dhooks.c300 static int superblock_alloc_security(struct super_block *sb) argument
311 sbsec->sb = sb;
315 sb->s_security = sbsec;
320 static void superblock_free_security(struct super_block *sb) argument
322 struct superblock_security_struct *sbsec = sb->s_security;
323 sb->s_security = NULL;
402 static int selinux_is_sblabel_mnt(struct super_block *sb) argument
404 struct superblock_security_struct *sbsec = sb->s_security;
410 !strcmp(sb
416 sb_finish_set_opts(struct super_block *sb) argument
496 selinux_get_mnt_opts(const struct super_block *sb, struct security_mnt_opts *opts) argument
609 selinux_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts, unsigned long kern_flags, unsigned long *set_kern_flags) argument
1044 superblock_doinit(struct super_block *sb, void *data) argument
1115 selinux_sb_show_options(struct seq_file *m, struct super_block *sb) argument
1241 struct super_block *sb = dentry->d_inode->i_sb; local
1851 superblock_has_perm(const struct cred *cred, struct super_block *sb, u32 perms, struct common_audit_data *ad) argument
2067 selinux_quotactl(int cmds, int type, int id, struct super_block *sb) argument
2470 selinux_sb_alloc_security(struct super_block *sb) argument
2475 selinux_sb_free_security(struct super_block *sb) argument
2571 selinux_sb_remount(struct super_block *sb, void *data) argument
2657 selinux_sb_kern_mount(struct super_block *sb, int flags, void *data) argument
6150 delayed_superblock_init(struct super_block *sb, void *unused) argument
[all...]
H A Dselinuxfs.c1037 static struct inode *sel_make_inode(struct super_block *sb, int mode) argument
1039 struct inode *ret = new_inode(sb);
1791 static int sel_fill_super(struct super_block *sb, void *data, int silent) argument
1818 ret = simple_fill_super(sb, SELINUX_MAGIC, selinux_files);
1822 bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &sel_last_ino);
1830 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME);
1835 inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO);
1849 dentry = sel_make_dir(sb->s_root, "avc", &sel_last_ino);
1859 dentry = sel_make_dir(sb->s_root, "initial_contexts", &sel_last_ino);
1869 class_dir = sel_make_dir(sb
[all...]
/security/
H A Dinode.c33 static int fill_super(struct super_block *sb, void *data, int silent) argument
37 return simple_fill_super(sb, SECURITYFS_MAGIC, files);
H A Dsecurity.c209 int security_quotactl(int cmds, int type, int id, struct super_block *sb) argument
211 return security_ops->quotactl(cmds, type, id, sb);
264 int security_sb_alloc(struct super_block *sb) argument
266 return security_ops->sb_alloc_security(sb);
269 void security_sb_free(struct super_block *sb) argument
271 security_ops->sb_free_security(sb);
280 int security_sb_remount(struct super_block *sb, void *data) argument
282 return security_ops->sb_remount(sb, data);
285 int security_sb_kern_mount(struct super_block *sb, int flags, void *data) argument
287 return security_ops->sb_kern_mount(sb, flag
290 security_sb_show_options(struct seq_file *m, struct super_block *sb) argument
316 security_sb_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts, unsigned long kern_flags, unsigned long *set_kern_flags) argument
[all...]
H A Dcapability.c40 static int cap_quotactl(int cmds, int type, int id, struct super_block *sb) argument
63 static int cap_sb_alloc_security(struct super_block *sb) argument
68 static void cap_sb_free_security(struct super_block *sb) argument
77 static int cap_sb_remount(struct super_block *sb, void *data) argument
82 static int cap_sb_kern_mount(struct super_block *sb, int flags, void *data) argument
87 static int cap_sb_show_options(struct seq_file *m, struct super_block *sb) argument
113 static int cap_sb_set_mnt_opts(struct super_block *sb, argument
/security/selinux/include/
H A Dobjsec.h61 struct super_block *sb; /* back pointer to sb object */ member in struct:superblock_security_struct
H A Dsecurity.h212 int security_fs_use(struct super_block *sb);
/security/smack/
H A Dsmack_lsm.c454 * @sb: the superblock getting the blob
458 static int smack_sb_alloc_security(struct super_block *sb) argument
474 sb->s_security = sbsp;
481 * @sb: the superblock getting the blob
484 static void smack_sb_free_security(struct super_block *sb) argument
486 kfree(sb->s_security);
487 sb->s_security = NULL;
539 * @sb: the file system superblock
545 static int smack_sb_kern_mount(struct super_block *sb, int flags, void *data) argument
547 struct dentry *root = sb
[all...]
H A Dsmackfs.c2334 * @sb: the empty superblock
2342 static int smk_fill_super(struct super_block *sb, void *data, int silent) argument
2391 rc = simple_fill_super(sb, SMACK_MAGIC, smack_files);
2398 root_inode = sb->s_root->d_inode;
/security/selinux/ss/
H A Dservices.c2529 * @sb: superblock in question
2531 int security_fs_use(struct super_block *sb) argument
2535 struct superblock_security_struct *sbsec = sb->s_security;
2536 const char *fstype = sb->s_type->name;

Completed in 65 milliseconds