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
0e9c39d2
Commit
0e9c39d2
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove access to ro.runtime.firstboot from apps"
parents
9d8e3ab6
062236a8
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
private/property_contexts
+1
-0
1 addition, 0 deletions
private/property_contexts
public/domain.te
+3
-0
3 additions, 0 deletions
public/domain.te
public/property.te
+1
-0
1 addition, 0 deletions
public/property.te
public/system_server.te
+3
-0
3 additions, 0 deletions
public/system_server.te
with
8 additions
and
0 deletions
private/property_contexts
+
1
−
0
View file @
0e9c39d2
...
@@ -18,6 +18,7 @@ persist.radio u:object_r:radio_prop:s0
...
@@ -18,6 +18,7 @@ persist.radio u:object_r:radio_prop:s0
net. u:object_r:system_prop:s0
net. u:object_r:system_prop:s0
dev. u:object_r:system_prop:s0
dev. u:object_r:system_prop:s0
ro.runtime. u:object_r:system_prop:s0
ro.runtime. u:object_r:system_prop:s0
ro.runtime.firstboot u:object_r:firstboot_prop:s0
hw. u:object_r:system_prop:s0
hw. u:object_r:system_prop:s0
ro.hw. u:object_r:system_prop:s0
ro.hw. u:object_r:system_prop:s0
sys. u:object_r:system_prop:s0
sys. u:object_r:system_prop:s0
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
3
−
0
View file @
0e9c39d2
...
@@ -386,6 +386,9 @@ neverallow {
...
@@ -386,6 +386,9 @@ neverallow {
-system_server
-system_server
} serialno_prop:file r_file_perms;
} serialno_prop:file r_file_perms;
# Do not allow reading the last boot timestamp from system properties
neverallow { domain -init -system_server } firstboot_prop:file r_file_perms;
neverallow {
neverallow {
domain
domain
-init
-init
...
...
This diff is collapsed.
Click to expand it.
public/property.te
+
1
−
0
View file @
0e9c39d2
...
@@ -21,6 +21,7 @@ type dumpstate_options_prop, property_type;
...
@@ -21,6 +21,7 @@ type dumpstate_options_prop, property_type;
type dumpstate_prop, property_type, core_property_type;
type dumpstate_prop, property_type, core_property_type;
type ffs_prop, property_type, core_property_type;
type ffs_prop, property_type, core_property_type;
type fingerprint_prop, property_type, core_property_type;
type fingerprint_prop, property_type, core_property_type;
type firstboot_prop, property_type;
type hwservicemanager_prop, property_type;
type hwservicemanager_prop, property_type;
type logd_prop, property_type, core_property_type;
type logd_prop, property_type, core_property_type;
type logpersistd_logging_prop, property_type;
type logpersistd_logging_prop, property_type;
...
...
This diff is collapsed.
Click to expand it.
public/system_server.te
+
3
−
0
View file @
0e9c39d2
...
@@ -391,6 +391,9 @@ get_prop(system_server, boottime_prop)
...
@@ -391,6 +391,9 @@ get_prop(system_server, boottime_prop)
# Read device's serial number from system properties
# Read device's serial number from system properties
get_prop(system_server, serialno_prop)
get_prop(system_server, serialno_prop)
# Read/write the property which keeps track of whether this is the first start of system_server
set_prop(system_server, firstboot_prop)
# Create a socket for receiving info from wpa.
# Create a socket for receiving info from wpa.
allow system_server wpa_socket:dir rw_dir_perms;
allow system_server wpa_socket:dir rw_dir_perms;
allow system_server system_wpa_socket:sock_file create_file_perms;
allow system_server system_wpa_socket:sock_file create_file_perms;
...
...
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