Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
965f2ff1
Commit
965f2ff1
authored
12 years ago
by
Stephen Smalley
Browse files
Options
Downloads
Patches
Plain Diff
Allow system_app to set MAC enforcing mode and read MAC denials.
parent
03d2803c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
system.te
+17
-5
17 additions, 5 deletions
system.te
with
17 additions
and
5 deletions
system.te
+
17
−
5
View file @
965f2ff1
...
...
@@ -27,17 +27,29 @@ unix_socket_connect(system_app, keystore, keystore)
# Read SELinux enforcing status.
selinux_getenforce(system_app)
bool
settings_
manage_selinux true;
if (
settings_
manage_selinux) {
#
Allow settings app to s
et SELinux
to
enforcing
bool manage_selinux true;
if (manage_selinux) {
#
S
et SELinux enforcing
status.
selinux_setenforce(system_app)
#
Allow settings app to s
et SELinux booleans
#
S
et SELinux booleans
.
selinux_setbool(system_app)
#
Allow settings app to r
ead syslog to display AVC messages
#
R
ead syslog to display AVC messages
.
allow system_app kernel:system syslog_read;
}
bool manage_mac true;
if (manage_mac) {
# Set properties via the init property service.
unix_socket_connect(system_app, property, init)
# Set the persist.mac_enforcing_mode property.
allow system_app system_prop:property_service set;
# Run logcat and read the logs for MAC denials.
allow system_app system_file:file x_file_perms;
allow system_app log_device:chr_file read;
}
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment