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
98f18214
Commit
98f18214
authored
7 years ago
by
Tri Vo
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Restrict netd fwk policy.
am:
8dabc2ce
Change-Id: Id5b3e446c5ac050fc73beb5a7473789ab59d2baf
parents
bf5a4b71
8dabc2ce
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/compat/26.0/26.0.cil
+1
-0
1 addition, 0 deletions
private/compat/26.0/26.0.cil
private/genfs_contexts
+1
-0
1 addition, 0 deletions
private/genfs_contexts
public/file.te
+1
-0
1 addition, 0 deletions
public/file.te
public/netd.te
+4
-2
4 additions, 2 deletions
public/netd.te
with
7 additions
and
2 deletions
private/compat/26.0/26.0.cil
+
1
−
0
View file @
98f18214
...
...
@@ -569,6 +569,7 @@
sysfs_android_usb
sysfs_dm
sysfs_ipv4
sysfs_net
sysfs_power
sysfs_rtc
sysfs_switch
...
...
This diff is collapsed.
Click to expand it.
private/genfs_contexts
+
1
−
0
View file @
98f18214
...
...
@@ -71,6 +71,7 @@ genfscon sysfs /devices/virtual/block/zram1 u:object_r:sysfs_zram:s0
genfscon sysfs /devices/virtual/block/zram0/uevent u:object_r:sysfs_zram_uevent:s0
genfscon sysfs /devices/virtual/block/zram1/uevent u:object_r:sysfs_zram_uevent:s0
genfscon sysfs /devices/virtual/misc/hw_random u:object_r:sysfs_hwrandom:s0
genfscon sysfs /devices/virtual/net u:object_r:sysfs_net:s0
genfscon sysfs /devices/virtual/switch u:object_r:sysfs_switch:s0
genfscon sysfs /fs/ext4/features u:object_r:sysfs_fs_ext4_features:s0
genfscon sysfs /power/state u:object_r:sysfs_power:s0
...
...
This diff is collapsed.
Click to expand it.
public/file.te
+
1
−
0
View file @
98f18214
...
...
@@ -55,6 +55,7 @@ type sysfs_hwrandom, fs_type, sysfs_type;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type;
type sysfs_mac_address, fs_type, sysfs_type;
type sysfs_net, fs_type, sysfs_type;
type sysfs_power, fs_type, sysfs_type;
type sysfs_rtc, fs_type, sysfs_type;
type sysfs_switch, fs_type, sysfs_type;
...
...
This diff is collapsed.
Click to expand it.
public/netd.te
+
4
−
2
View file @
98f18214
...
...
@@ -38,9 +38,11 @@ r_dir_file(netd, proc_net)
allow netd proc_net:file rw_file_perms;
# Enables PppController and interface enumeration (among others)
r_dir_file(netd, sysfs_type)
allow netd sysfs:dir r_dir_perms;
r_dir_file(netd, sysfs_net)
# Allows setting interface MTU
allow netd sysfs:file w
rite
;
allow netd sysfs
_net
:file w
_file_perms
;
# TODO: added to match above sysfs rule. Remove me?
allow netd sysfs_usb:file write;
...
...
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