Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
fea9ad7c
Commit
fea9ad7c
authored
9 years ago
by
Daniel Cashman
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "remove access_kmsg macro, because it to be more explicit."
parents
eecaa0b5
001b10bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recovery.te
+1
-1
1 addition, 1 deletion
recovery.te
te_macros
+0
-10
0 additions, 10 deletions
te_macros
with
1 addition
and
11 deletions
recovery.te
+
1
−
1
View file @
fea9ad7c
...
@@ -48,7 +48,7 @@ recovery_only(`
...
@@ -48,7 +48,7 @@ recovery_only(`
# TODO: create more specific label?
# TODO: create more specific label?
allow recovery sysfs:file w_file_perms;
allow recovery sysfs:file w_file_perms;
a
ccess_kmsg(recovery)
a
llow recovery kernel:system syslog_read;
# Access /dev/android_adb or /dev/usb-ffs/adb/ep0
# Access /dev/android_adb or /dev/usb-ffs/adb/ep0
allow recovery adb_device:chr_file rw_file_perms;
allow recovery adb_device:chr_file rw_file_perms;
...
...
This diff is collapsed.
Click to expand it.
te_macros
+
0
−
10
View file @
fea9ad7c
...
@@ -269,16 +269,6 @@ allow $1 security_file:lnk_file { create rename unlink };
...
@@ -269,16 +269,6 @@ allow $1 security_file:lnk_file { create rename unlink };
set_prop($1, security_prop)
set_prop($1, security_prop)
')
')
#####################################
# access_kmsg(domain)
# Ability to read from kernel logs
# and execute the klogctl syscall
# in a non destructive manner. See
# man 2 klogctl
define(`access_kmsg', `
allow $1 kernel:system syslog_read;
')
#####################################
#####################################
# create_pty(domain)
# create_pty(domain)
# Allow domain to create and use a pty, isolated from any other domain ptys.
# Allow domain to create and use a pty, isolated from any other domain ptys.
...
...
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