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
10f3c370
Commit
10f3c370
authored
11 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Make sure exec_type is assigned to all entrypoint types."
parents
5c947234
01301549
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
domain.te
+3
-0
3 additions, 0 deletions
domain.te
ping.te
+1
-1
1 addition, 1 deletion
ping.te
runas.te
+1
-1
1 addition, 1 deletion
runas.te
shell.te
+1
-1
1 addition, 1 deletion
shell.te
su.te
+1
-1
1 addition, 1 deletion
su.te
su_user.te
+1
-1
1 addition, 1 deletion
su_user.te
with
8 additions
and
5 deletions
domain.te
+
3
−
0
View file @
10f3c370
...
...
@@ -138,3 +138,6 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
# Only init should be able to load SELinux policies
neverallow { domain -init } kernel:security load_policy;
# Ensure that all entrypoint executables are in exec_type.
neverallow domain { file_type -exec_type }:file entrypoint;
This diff is collapsed.
Click to expand it.
ping.te
+
1
−
1
View file @
10f3c370
type ping, domain;
permissive ping;
type ping_exec, file_type;
type ping_exec,
exec_type,
file_type;
domain_auto_trans(shell, ping_exec, ping)
unconfined_domain(ping)
This diff is collapsed.
Click to expand it.
runas.te
+
1
−
1
View file @
10f3c370
type runas, domain;
type runas_exec, file_type;
type runas_exec,
exec_type,
file_type;
permissive runas;
unconfined_domain(runas)
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
1
−
1
View file @
10f3c370
# Domain for shell processes spawned by ADB
type shell, domain;
type shell_exec, file_type;
type shell_exec,
exec_type,
file_type;
unconfined_domain(shell)
# Run app_process.
...
...
This diff is collapsed.
Click to expand it.
su.te
+
1
−
1
View file @
10f3c370
type su, domain;
permissive su;
type su_exec, file_type;
type su_exec,
exec_type,
file_type;
domain_auto_trans(shell, su_exec, su)
# su is unconfined.
...
...
This diff is collapsed.
Click to expand it.
su_user.te
+
1
−
1
View file @
10f3c370
# File types must be defined for file_contexts.
type su_exec, file_type;
type su_exec,
exec_type,
file_type;
# No allow rules
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