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

/linux-4.1.27/security/apparmor/
H A Dapparmorfs.c191 struct aa_fs_entry *fs_file = seq->private; aa_fs_seq_show() local
193 if (!fs_file) aa_fs_seq_show()
196 switch (fs_file->v_type) { aa_fs_seq_show()
198 seq_printf(seq, "%s\n", fs_file->v.boolean ? "yes" : "no"); aa_fs_seq_show()
201 seq_printf(seq, "%s\n", fs_file->v.string); aa_fs_seq_show()
204 seq_printf(seq, "%#08lx\n", fs_file->v.u64); aa_fs_seq_show()
829 * @fs_file: aa_fs_entry to build an entry for (NOT NULL)
834 static int __init aafs_create_file(struct aa_fs_entry *fs_file, aafs_create_file() argument
839 fs_file->dentry = securityfs_create_file(fs_file->name, aafs_create_file()
840 S_IFREG | fs_file->mode, aafs_create_file()
841 parent, fs_file, aafs_create_file()
842 fs_file->file_ops); aafs_create_file()
843 if (IS_ERR(fs_file->dentry)) { aafs_create_file()
844 error = PTR_ERR(fs_file->dentry); aafs_create_file()
845 fs_file->dentry = NULL; aafs_create_file()
861 struct aa_fs_entry *fs_file; aafs_create_dir() local
870 for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { aafs_create_dir()
871 if (fs_file->v_type == AA_FS_TYPE_DIR) aafs_create_dir()
872 error = aafs_create_dir(fs_file, fs_dir->dentry); aafs_create_dir()
874 error = aafs_create_file(fs_file, fs_dir->dentry); aafs_create_dir()
889 * @fs_file: aa_fs_entry to detach from the securityfs (NOT NULL)
891 static void __init aafs_remove_file(struct aa_fs_entry *fs_file) aafs_remove_file() argument
893 if (!fs_file->dentry) aafs_remove_file()
896 securityfs_remove(fs_file->dentry); aafs_remove_file()
897 fs_file->dentry = NULL; aafs_remove_file()
906 struct aa_fs_entry *fs_file; aafs_remove_dir() local
908 for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { aafs_remove_dir()
909 if (fs_file->v_type == AA_FS_TYPE_DIR) aafs_remove_dir()
910 aafs_remove_dir(fs_file); aafs_remove_dir()
912 aafs_remove_file(fs_file); aafs_remove_dir()

Completed in 48 milliseconds