Lines Matching refs:file
443 static ssize_t smk_write_rules_list(struct file *file, const char __user *buf, in smk_write_rules_list() argument
644 static int smk_open_load(struct inode *inode, struct file *file) in smk_open_load() argument
646 return seq_open(file, &load_seq_ops); in smk_open_load()
657 static ssize_t smk_write_load(struct file *file, const char __user *buf, in smk_write_load() argument
668 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_load()
815 static int smk_open_cipso(struct inode *inode, struct file *file) in smk_open_cipso() argument
817 return seq_open(file, &cipso_seq_ops); in smk_open_cipso()
831 static ssize_t smk_set_cipso(struct file *file, const char __user *buf, in smk_set_cipso() argument
929 static ssize_t smk_write_cipso(struct file *file, const char __user *buf, in smk_write_cipso() argument
932 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT); in smk_write_cipso()
988 static int smk_open_cipso2(struct inode *inode, struct file *file) in smk_open_cipso2() argument
990 return seq_open(file, &cipso2_seq_ops); in smk_open_cipso2()
1003 static ssize_t smk_write_cipso2(struct file *file, const char __user *buf, in smk_write_cipso2() argument
1006 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT); in smk_write_cipso2()
1064 static int smk_open_net4addr(struct inode *inode, struct file *file) in smk_open_net4addr() argument
1066 return seq_open(file, &net4addr_seq_ops); in smk_open_net4addr()
1122 static ssize_t smk_write_net4addr(struct file *file, const char __user *buf, in smk_write_net4addr() argument
1328 static int smk_open_net6addr(struct inode *inode, struct file *file) in smk_open_net6addr() argument
1330 return seq_open(file, &net6addr_seq_ops); in smk_open_net6addr()
1385 static ssize_t smk_write_net6addr(struct file *file, const char __user *buf, in smk_write_net6addr() argument
1549 static ssize_t smk_read_doi(struct file *filp, char __user *buf, in smk_read_doi()
1573 static ssize_t smk_write_doi(struct file *file, const char __user *buf, in smk_write_doi() argument
1615 static ssize_t smk_read_direct(struct file *filp, char __user *buf, in smk_read_direct()
1639 static ssize_t smk_write_direct(struct file *file, const char __user *buf, in smk_write_direct() argument
1693 static ssize_t smk_read_mapped(struct file *filp, char __user *buf, in smk_read_mapped()
1717 static ssize_t smk_write_mapped(struct file *file, const char __user *buf, in smk_write_mapped() argument
1771 static ssize_t smk_read_ambient(struct file *filp, char __user *buf, in smk_read_ambient()
1808 static ssize_t smk_write_ambient(struct file *file, const char __user *buf, in smk_write_ambient() argument
1880 static int smk_open_onlycap(struct inode *inode, struct file *file) in smk_open_onlycap() argument
1882 return seq_open(file, &onlycap_seq_ops); in smk_open_onlycap()
1980 static ssize_t smk_write_onlycap(struct file *file, const char __user *buf, in smk_write_onlycap() argument
2037 static ssize_t smk_read_unconfined(struct file *filp, char __user *buf, in smk_read_unconfined()
2067 static ssize_t smk_write_unconfined(struct file *file, const char __user *buf, in smk_write_unconfined() argument
2121 static ssize_t smk_read_logging(struct file *filp, char __user *buf, in smk_read_logging()
2144 static ssize_t smk_write_logging(struct file *file, const char __user *buf, in smk_write_logging() argument
2221 static int smk_open_load_self(struct inode *inode, struct file *file) in smk_open_load_self() argument
2223 return seq_open(file, &load_self_seq_ops); in smk_open_load_self()
2234 static ssize_t smk_write_load_self(struct file *file, const char __user *buf, in smk_write_load_self() argument
2239 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules, in smk_write_load_self()
2258 static ssize_t smk_user_access(struct file *file, const char __user *buf, in smk_user_access() argument
2265 data = simple_transaction_get(file, buf, count); in smk_user_access()
2292 simple_transaction_set(file, 2); in smk_user_access()
2306 static ssize_t smk_write_access(struct file *file, const char __user *buf, in smk_write_access() argument
2309 return smk_user_access(file, buf, count, ppos, SMK_FIXED24_FMT); in smk_write_access()
2351 static int smk_open_load2(struct inode *inode, struct file *file) in smk_open_load2() argument
2353 return seq_open(file, &load2_seq_ops); in smk_open_load2()
2364 static ssize_t smk_write_load2(struct file *file, const char __user *buf, in smk_write_load2() argument
2373 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_load2()
2428 static int smk_open_load_self2(struct inode *inode, struct file *file) in smk_open_load_self2() argument
2430 return seq_open(file, &load_self2_seq_ops); in smk_open_load_self2()
2441 static ssize_t smk_write_load_self2(struct file *file, const char __user *buf, in smk_write_load_self2() argument
2446 return smk_write_rules_list(file, buf, count, ppos, &tsp->smk_rules, in smk_write_load_self2()
2465 static ssize_t smk_write_access2(struct file *file, const char __user *buf, in smk_write_access2() argument
2468 return smk_user_access(file, buf, count, ppos, SMK_LONG_FMT); in smk_write_access2()
2485 static ssize_t smk_write_revoke_subj(struct file *file, const char __user *buf, in smk_write_revoke_subj() argument
2560 static ssize_t smk_write_change_rule(struct file *file, const char __user *buf, in smk_write_change_rule() argument
2569 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_change_rule()
2589 static ssize_t smk_read_syslog(struct file *filp, char __user *buf, in smk_read_syslog()
2622 static ssize_t smk_write_syslog(struct file *file, const char __user *buf, in smk_write_syslog() argument
2697 static int smk_open_relabel_self(struct inode *inode, struct file *file) in smk_open_relabel_self() argument
2699 return seq_open(file, &relabel_self_seq_ops); in smk_open_relabel_self()
2710 static ssize_t smk_write_relabel_self(struct file *file, const char __user *buf, in smk_write_relabel_self() argument
2764 static ssize_t smk_read_ptrace(struct file *filp, char __user *buf, in smk_read_ptrace()
2785 static ssize_t smk_write_ptrace(struct file *file, const char __user *buf, in smk_write_ptrace() argument