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
05383ebf
Commit
05383ebf
authored
10 years ago
by
Martijn Coenen
Browse files
Options
Downloads
Patches
Plain Diff
Allow NFC to read/write nfc. system properties.
Bug: 17298769 Change-Id: I1994ff9f9da9b13249099f6c9bcec88dcdc2bb97
parent
0a20b57f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app.te
+2
-2
2 additions, 2 deletions
app.te
nfc.te
+4
-0
4 additions, 0 deletions
nfc.te
property.te
+1
-0
1 addition, 0 deletions
property.te
property_contexts
+3
-0
3 additions, 0 deletions
property_contexts
with
10 additions
and
2 deletions
app.te
+
2
−
2
View file @
05383ebf
...
@@ -236,7 +236,7 @@ neverallow appdomain socket_device:sock_file write;
...
@@ -236,7 +236,7 @@ neverallow appdomain socket_device:sock_file write;
# Unix domain sockets.
# Unix domain sockets.
neverallow appdomain adbd_socket:sock_file write;
neverallow appdomain adbd_socket:sock_file write;
neverallow appdomain installd_socket:sock_file write;
neverallow appdomain installd_socket:sock_file write;
neverallow { appdomain -bluetooth -radio -shell -system_app }
neverallow { appdomain -bluetooth -radio -shell -system_app
-nfc
}
property_socket:sock_file write;
property_socket:sock_file write;
neverallow { appdomain -radio } rild_socket:sock_file write;
neverallow { appdomain -radio } rild_socket:sock_file write;
neverallow appdomain vold_socket:sock_file write;
neverallow appdomain vold_socket:sock_file write;
...
@@ -338,5 +338,5 @@ neverallow { appdomain -system_app -shell }
...
@@ -338,5 +338,5 @@ neverallow { appdomain -system_app -shell }
neverallow appdomain fs_type:filesystem ~getattr;
neverallow appdomain fs_type:filesystem ~getattr;
# Ability to set system properties.
# Ability to set system properties.
neverallow { appdomain -system_app -radio -shell -bluetooth }
neverallow { appdomain -system_app -radio -shell -bluetooth
-nfc
}
property_type:property_service set;
property_type:property_service set;
This diff is collapsed.
Click to expand it.
nfc.te
+
4
−
0
View file @
05383ebf
...
@@ -4,6 +4,10 @@ app_domain(nfc)
...
@@ -4,6 +4,10 @@ app_domain(nfc)
net_domain(nfc)
net_domain(nfc)
binder_service(nfc)
binder_service(nfc)
# Set NFC properties
unix_socket_connect(nfc, property, init)
allow nfc nfc_prop:property_service set;
# NFC device access.
# NFC device access.
allow nfc nfc_device:chr_file rw_file_perms;
allow nfc nfc_device:chr_file rw_file_perms;
...
...
This diff is collapsed.
Click to expand it.
property.te
+
1
−
0
View file @
05383ebf
...
@@ -22,3 +22,4 @@ type security_prop, property_type;
...
@@ -22,3 +22,4 @@ type security_prop, property_type;
type bluetooth_prop, property_type;
type bluetooth_prop, property_type;
type pan_result_prop, property_type;
type pan_result_prop, property_type;
type powerctl_prop, property_type;
type powerctl_prop, property_type;
type nfc_prop, property_type;
This diff is collapsed.
Click to expand it.
property_contexts
+
3
−
0
View file @
05383ebf
...
@@ -58,3 +58,6 @@ ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
...
@@ -58,3 +58,6 @@ ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.dhcpcd_bt-pan u:object_r:ctl_dhcp_pan_prop:s0
ctl.dhcpcd_bt-pan u:object_r:ctl_dhcp_pan_prop:s0
ctl. u:object_r:ctl_default_prop:s0
ctl. u:object_r:ctl_default_prop:s0
# NFC properties
nfc. u:object_r:nfc_prop:s0
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