Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26465
b: refs/heads/master
c: 30d5528
h: refs/heads/master
i:
  26463: 55c4716
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed May 3, 2006
1 parent 60343f9 commit b68275d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e17df688f7064dae1417ce425dd1e4b71d24d63b
refs/heads/master: 30d55280b867aa0cae99f836ad0181bb0bf8f9cb
3 changes: 3 additions & 0 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ static int __init selinux_enabled_setup(char *str)
return 1;
}
__setup("selinux=", selinux_enabled_setup);
#else
int selinux_enabled = 1;
#endif

/* Original (dummy) security module. */
Expand Down Expand Up @@ -4535,6 +4537,7 @@ int selinux_disable(void)
printk(KERN_INFO "SELinux: Disabled at runtime.\n");

selinux_disabled = 1;
selinux_enabled = 0;

/* Reset security_ops to the secondary module, dummy or capability. */
security_ops = secondary_ops;
Expand Down
5 changes: 0 additions & 5 deletions trunk/security/selinux/include/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
#define POLICYDB_VERSION_MIN POLICYDB_VERSION_BASE
#define POLICYDB_VERSION_MAX POLICYDB_VERSION_AVTAB

#ifdef CONFIG_SECURITY_SELINUX_BOOTPARAM
extern int selinux_enabled;
#else
#define selinux_enabled 1
#endif

extern int selinux_mls_enabled;

int security_load_policy(void * data, size_t len);
Expand Down

0 comments on commit b68275d

Please sign in to comment.