Lines Matching refs:file
121 static ssize_t sel_read_enforce(struct file *filp, char __user *buf, in sel_read_enforce()
134 static ssize_t sel_write_enforce(struct file *file, const char __user *buf, in sel_write_enforce() argument
138 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_enforce()
199 static ssize_t sel_read_handle_unknown(struct file *filp, char __user *buf, in sel_read_handle_unknown()
220 static int sel_open_handle_status(struct inode *inode, struct file *filp) in sel_open_handle_status()
233 static ssize_t sel_read_handle_status(struct file *filp, char __user *buf, in sel_read_handle_status()
245 static int sel_mmap_handle_status(struct file *filp, in sel_mmap_handle_status()
275 static ssize_t sel_write_disable(struct file *file, const char __user *buf, in sel_write_disable() argument
279 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_disable()
327 static ssize_t sel_read_policyvers(struct file *filp, char __user *buf, in sel_read_policyvers()
351 static ssize_t sel_read_mls(struct file *filp, char __user *buf, in sel_read_mls()
373 static int sel_open_policy(struct inode *inode, struct file *filp) in sel_open_policy()
425 static int sel_release_policy(struct inode *inode, struct file *filp) in sel_release_policy()
440 static ssize_t sel_read_policy(struct file *filp, char __user *buf, in sel_read_policy()
481 static int sel_mmap_policy(struct file *filp, struct vm_area_struct *vma) in sel_mmap_policy()
530 static ssize_t sel_write_load(struct file *file, const char __user *buf, in sel_write_load() argument
534 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_load()
592 static ssize_t sel_write_context(struct file *file, char *buf, size_t size) in sel_write_context() argument
594 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_context()
628 static ssize_t sel_read_checkreqprot(struct file *filp, char __user *buf, in sel_read_checkreqprot()
639 static ssize_t sel_write_checkreqprot(struct file *file, const char __user *buf, in sel_write_checkreqprot() argument
642 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_checkreqprot()
681 static ssize_t sel_write_validatetrans(struct file *file, in sel_write_validatetrans() argument
685 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_validatetrans()
763 static ssize_t sel_write_access(struct file *file, char *buf, size_t size);
764 static ssize_t sel_write_create(struct file *file, char *buf, size_t size);
765 static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size);
766 static ssize_t sel_write_user(struct file *file, char *buf, size_t size);
767 static ssize_t sel_write_member(struct file *file, char *buf, size_t size);
769 static ssize_t (*const write_op[])(struct file *, char *, size_t) = {
778 static ssize_t selinux_transaction_write(struct file *file, const char __user *buf, size_t size, lo… in selinux_transaction_write() argument
780 ino_t ino = file_inode(file)->i_ino; in selinux_transaction_write()
787 data = simple_transaction_get(file, buf, size); in selinux_transaction_write()
791 rv = write_op[ino](file, data, size); in selinux_transaction_write()
793 simple_transaction_set(file, rv); in selinux_transaction_write()
812 static ssize_t sel_write_access(struct file *file, char *buf, size_t size) in sel_write_access() argument
814 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_access()
863 static ssize_t sel_write_create(struct file *file, char *buf, size_t size) in sel_write_create() argument
865 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_create()
967 static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size) in sel_write_relabel() argument
969 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_relabel()
1028 static ssize_t sel_write_user(struct file *file, char *buf, size_t size) in sel_write_user() argument
1030 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_user()
1093 static ssize_t sel_write_member(struct file *file, char *buf, size_t size) in sel_write_member() argument
1095 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_member()
1168 static ssize_t sel_read_bool(struct file *filep, char __user *buf, in sel_read_bool()
1209 static ssize_t sel_write_bool(struct file *filep, const char __user *buf, in sel_write_bool()
1266 static ssize_t sel_commit_bools_write(struct file *filep, in sel_commit_bools_write()
1415 static ssize_t sel_read_avc_cache_threshold(struct file *filp, char __user *buf, in sel_read_avc_cache_threshold()
1428 static ssize_t sel_write_avc_cache_threshold(struct file *file, in sel_write_avc_cache_threshold() argument
1433 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_avc_cache_threshold()
1469 static ssize_t sel_read_avc_hash_stats(struct file *filp, char __user *buf, in sel_read_avc_hash_stats()
1489 static ssize_t sel_read_sidtab_hash_stats(struct file *filp, char __user *buf, in sel_read_sidtab_hash_stats()
1583 static int sel_open_avc_cache_stats(struct inode *inode, struct file *file) in sel_open_avc_cache_stats() argument
1585 return seq_open(file, &sel_avc_cache_stats_seq_ops); in sel_open_avc_cache_stats()
1663 static ssize_t sel_read_initcon(struct file *file, char __user *buf, in sel_read_initcon() argument
1666 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_read_initcon()
1671 sid = file_inode(file)->i_ino&SEL_INO_MASK; in sel_read_initcon()
1731 static ssize_t sel_read_class(struct file *file, char __user *buf, in sel_read_class() argument
1734 unsigned long ino = file_inode(file)->i_ino; in sel_read_class()
1745 static ssize_t sel_read_perm(struct file *file, char __user *buf, in sel_read_perm() argument
1748 unsigned long ino = file_inode(file)->i_ino; in sel_read_perm()
1759 static ssize_t sel_read_policycap(struct file *file, char __user *buf, in sel_read_policycap() argument
1762 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_read_policycap()
1766 unsigned long i_ino = file_inode(file)->i_ino; in sel_read_policycap()