mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 01:56:42 +07:00
selinux: sparse fix: declare selinux_disable() in security.h
Sparse fix: declare selinux_disable() in security.h Signed-off-by: James Morris <jmorris@namei.org> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
5c884c1d4a
commit
6063c0461b
@ -217,6 +217,7 @@ struct selinux_kernel_status {
|
||||
extern void selinux_status_update_setenforce(int enforcing);
|
||||
extern void selinux_status_update_policyload(int seqno);
|
||||
extern void selinux_complete_init(void);
|
||||
extern int selinux_disable(void);
|
||||
|
||||
#endif /* _SELINUX_SECURITY_H_ */
|
||||
|
||||
|
@ -278,7 +278,6 @@ static ssize_t sel_write_disable(struct file *file, const char __user *buf,
|
||||
char *page = NULL;
|
||||
ssize_t length;
|
||||
int new_value;
|
||||
extern int selinux_disable(void);
|
||||
|
||||
length = -ENOMEM;
|
||||
if (count >= PAGE_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user