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
090a64a5
Commit
090a64a5
authored
7 years ago
by
Stephen Smalley
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "sepolicy: Define and allow map permission" am:
770214ab
am:
90f46dd9
am:
57247153
Change-Id: Iadf138fc64bad940308cb01b3a3b8159b8b33704
parents
5550422b
57247153
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/access_vectors
+2
-0
2 additions, 0 deletions
private/access_vectors
public/domain.te
+1
-1
1 addition, 1 deletion
public/domain.te
public/global_macros
+3
-3
3 additions, 3 deletions
public/global_macros
public/te_macros
+2
-2
2 additions, 2 deletions
public/te_macros
with
8 additions
and
6 deletions
private/access_vectors
+
2
−
0
View file @
090a64a5
...
...
@@ -20,6 +20,7 @@ common file
relabelfrom
relabelto
append
map
unlink
link
rename
...
...
@@ -46,6 +47,7 @@ common socket
relabelfrom
relabelto
append
map
# socket-specific
bind
connect
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
1
−
1
View file @
090a64a5
...
...
@@ -99,7 +99,7 @@ write_logd(domain)
# System file accesses.
allow domain system_file:dir { search getattr };
allow domain system_file:file { execute read open getattr };
allow domain system_file:file { execute read open getattr
map
};
allow domain system_file:lnk_file { getattr read };
# Make sure system/vendor split doesn not affect non-treble
...
...
This diff is collapsed.
Click to expand it.
public/global_macros
+
3
−
3
View file @
090a64a5
...
...
@@ -18,9 +18,9 @@ define(`ipc_class_set', `{ sem msgq shm ipc }')
#####################################
# Common groupings of permissions.
#
define(`x_file_perms', `{ getattr execute execute_no_trans }')
define(`r_file_perms', `{ getattr open read ioctl lock }')
define(`w_file_perms', `{ open append write lock }')
define(`x_file_perms', `{ getattr execute execute_no_trans
map
}')
define(`r_file_perms', `{ getattr open read ioctl lock
map
}')
define(`w_file_perms', `{ open append write lock
map
}')
define(`rx_file_perms', `{ r_file_perms x_file_perms }')
define(`ra_file_perms', `{ r_file_perms append }')
define(`rw_file_perms', `{ r_file_perms w_file_perms }')
...
...
This diff is collapsed.
Click to expand it.
public/te_macros
+
2
−
2
View file @
090a64a5
...
...
@@ -8,10 +8,10 @@
#
define(`domain_trans', `
# Old domain may exec the file and transition to the new domain.
allow $1 $2:file { getattr open read execute };
allow $1 $2:file { getattr open read execute
map
};
allow $1 $3:process transition;
# New domain is entered by executing the file.
allow $3 $2:file { entrypoint open read execute getattr };
allow $3 $2:file { entrypoint open read execute getattr
map
};
# New domain can send SIGCHLD to its caller.
ifelse($1, `init', `', `allow $3 $1:process sigchld;')
# Enable AT_SECURE, i.e. libc secure mode.
...
...
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