File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2097,9 +2097,6 @@ static int selinux_bprm_secureexec(struct linux_binprm *bprm)
20972097 return (atsecure || cap_bprm_secureexec (bprm ));
20982098}
20992099
2100- extern struct vfsmount * selinuxfs_mount ;
2101- extern struct dentry * selinux_null ;
2102-
21032100/* Derived from fs/exec.c:flush_old_files. */
21042101static inline void flush_unauthorized_files (const struct cred * cred ,
21052102 struct files_struct * files )
@@ -5803,8 +5800,6 @@ static int selinux_disabled;
58035800
58045801int selinux_disable (void )
58055802{
5806- extern void exit_sel_fs (void );
5807-
58085803 if (ss_initialized ) {
58095804 /* Not permitted after initial policy load. */
58105805 return - EINVAL ;
Original file line number Diff line number Diff line change @@ -218,6 +218,9 @@ extern void selinux_status_update_setenforce(int enforcing);
218218extern void selinux_status_update_policyload (int seqno );
219219extern void selinux_complete_init (void );
220220extern int selinux_disable (void );
221+ extern void exit_sel_fs (void );
222+ extern struct dentry * selinux_null ;
223+ extern struct vfsmount * selinuxfs_mount ;
221224
222225#endif /* _SELINUX_SECURITY_H_ */
223226
Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ static struct vm_operations_struct sel_mmap_policy_ops = {
477477 .page_mkwrite = sel_mmap_policy_fault ,
478478};
479479
480- int sel_mmap_policy (struct file * filp , struct vm_area_struct * vma )
480+ static int sel_mmap_policy (struct file * filp , struct vm_area_struct * vma )
481481{
482482 if (vma -> vm_flags & VM_SHARED ) {
483483 /* do not allow mprotect to make mapping writable */
You can’t perform that action at this time.
0 commit comments