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
49fd9567
Commit
49fd9567
authored
10 years ago
by
Martijn Coenen
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow NFC to read/write nfc. system properties." into lmp-dev
parents
62083414
05383ebf
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 @
49fd9567
...
...
@@ -244,7 +244,7 @@ neverallow appdomain socket_device:sock_file write;
# Unix domain sockets.
neverallow appdomain adbd_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;
neverallow { appdomain -radio } rild_socket:sock_file write;
neverallow appdomain vold_socket:sock_file write;
...
...
@@ -346,5 +346,5 @@ neverallow { appdomain -system_app -shell }
neverallow appdomain fs_type:filesystem ~getattr;
# 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;
This diff is collapsed.
Click to expand it.
nfc.te
+
4
−
0
View file @
49fd9567
...
...
@@ -4,6 +4,10 @@ app_domain(nfc)
net_domain(nfc)
binder_service(nfc)
# Set NFC properties
unix_socket_connect(nfc, property, init)
allow nfc nfc_prop:property_service set;
# NFC device access.
allow nfc nfc_device:chr_file rw_file_perms;
...
...
This diff is collapsed.
Click to expand it.
property.te
+
1
−
0
View file @
49fd9567
...
...
@@ -22,3 +22,4 @@ type security_prop, property_type;
type bluetooth_prop, property_type;
type pan_result_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 @
49fd9567
...
...
@@ -58,3 +58,6 @@ ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.dhcpcd_bt-pan u:object_r:ctl_dhcp_pan_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