Commit graph

15584 commits

Author SHA1 Message Date
Paul Crowley
216687a205 Allow vold_prepare_subdirs to delete more files.
am: 0fe31e04ea

Change-Id: I6509562b48706334c31a22325c5ff19c51c7d9e9
2018-04-27 08:49:07 -07:00
Chia-I Wu
146222ed08 Merge "Make persist.sys.sf.native_mode an integer" into pi-dev 2018-04-27 15:47:41 +00:00
Paul Crowley
0fe31e04ea Allow vold_prepare_subdirs to delete more files.
Bug: 78591623
Test: Create a new user with a fingerprint. Reboot. Delete that user.
    Check for denials, files left over in /data/*_{c,d}e/10
Merged-In: Ib818e112a98c5b954ee829e93ebd69c3b12940cf
Change-Id: Ib818e112a98c5b954ee829e93ebd69c3b12940cf
2018-04-26 16:02:06 -07:00
Paul Crowley
8096639792 Allow vold_prepare_subdirs to delete more files.
Bug: 78591623
Test: Create a new user with a fingerprint. Reboot. Delete that user.
    Check for denials, files left over in /data/*_{c,d}e/10
Merged-In: Ib818e112a98c5b954ee829e93ebd69c3b12940cf
Change-Id: Ib818e112a98c5b954ee829e93ebd69c3b12940cf
2018-04-26 15:26:11 -07:00
android-build-prod (mdb)
7835eb9145 Merge "app: removed unused /dev/ion write permissions" am: c58f3de7e5
am: c9dbefbc63

Change-Id: Ida4e7be649424e7cd634957b841c1c9af019e250
2018-04-26 14:32:31 -07:00
android-build-prod (mdb)
c9dbefbc63 Merge "app: removed unused /dev/ion write permissions"
am: c58f3de7e5

Change-Id: I10ee32805eadf56d19526a97ee3c8807840e2403
2018-04-26 14:27:06 -07:00
android-build-prod (mdb)
c58f3de7e5 Merge "app: removed unused /dev/ion write permissions" 2018-04-26 21:18:46 +00:00
Steven Moreland
8a52c98455 Enforce parent hal attribute hierarchy.
In order to support passthrough + binderized implementations
with a simple switch, there is a hierarchy of attributes for
different hal servers.

           /------- hal_X --------\
           |               **     |
           v                      v
      hal_X_client           hal_X_server
           |                      |
           |                      |
           v                      v
    halclientdomain        halserverdomain

** - hal_X -> hal_X_server is only on non-Treble devices. This
  is because on these devices, certain HALs are allowed to be
  loaded directly into the client process in "passthrough" mode
  as was the case in Android before Android O. This is a legacy
  compatibility mode. On Treble devices, any client can also be
  hal_X just by virtue of a server being able to also be a hal
  client.

There is also one exception to this rule. su is not given every
hal_* permission. If it is given all of these permissions on
non-Treble devices, it must be added as an exemption to many
other neverallow rules. As a sideeffect (which existed before
this patch), su is not allowed to talk directly to all hardware
on non-Treble devices as with Treble devices.

Fixes: 34180936
Test: compile only (neverallow rules are resolved at compile time)

Change-Id: I47122daf95acd49cadaf8b7664e56268dac78945
2018-04-26 20:52:21 +00:00
Jeff Vander Stoep
c20ba5bd68 app: removed unused /dev/ion write permissions
The /dev/ion driver's file operations structure does not specify a
write operation. Granting write is meaningless. This audit statement
has been around since Android Oreo and logs collected from dogfooders
shows that no apps are attempting to open the file with write
permissions.

Bug: 28760354
Test: build
Test: verify no "granted" messages from dogfood devices.
Change-Id: Id4f3540bba8c9f30f9d912f7a7473933be779cbb
2018-04-26 11:16:53 -07:00
Max Bires
d2d91e60de Adding ability for keystore to find dropbox
This will allow the logging in keystore to actually work.

Bug: 36549319
Test: keystore dropbox logging is successful
Change-Id: Ic135fa9624c289c54187e946affbd0caacef13c1
(cherry picked from commit 2e69afc079)
2018-04-26 16:14:24 +00:00
android-build-prod (mdb)
60de87f943 Merge "searchpolicy depends on FcSort" am: aa2185bba6
am: ff76102a31

Change-Id: I3b2f6a6f072c21ca66cf571833c31ed5cccd018a
2018-04-26 08:43:45 -07:00
android-build-prod (mdb)
ff76102a31 Merge "searchpolicy depends on FcSort"
am: aa2185bba6

Change-Id: I3807fdda671f26503c0e3f9f3839e82254aaa798
2018-04-26 08:39:48 -07:00
android-build-prod (mdb)
aa2185bba6 Merge "searchpolicy depends on FcSort" 2018-04-26 15:27:27 +00:00
android-build-prod (mdb)
feb1dc95c9 Merge "vendor_init: allow stat() of /data dir" am: 82a9051bc2
am: 04b7d196d6

Change-Id: I5614217aafd8bc6c4850f91d007508829bcc2e16
2018-04-26 08:27:06 -07:00
android-build-prod (mdb)
04b7d196d6 Merge "vendor_init: allow stat() of /data dir"
am: 82a9051bc2

Change-Id: I2b272f0ed117bc96ba2caa4d274999b1395e3198
2018-04-26 08:21:04 -07:00
Alan Stokes
0bff1ac478 Allow wpa_supplicant to write to files in /proc/net. am: 72ed615228
am: 2ee3ad73b8

Change-Id: Ia55c4af1fcee75ada0e67a162fdb92ecc0089312
2018-04-26 08:16:00 -07:00
android-build-prod (mdb)
82a9051bc2 Merge "vendor_init: allow stat() of /data dir" 2018-04-26 15:12:52 +00:00
Alan Stokes
2ee3ad73b8 Allow wpa_supplicant to write to files in /proc/net.
am: 72ed615228

Change-Id: Ib3bb05dc028874a646e84a7856127755a5117503
2018-04-26 08:09:44 -07:00
Alan Stokes
72ed615228 Allow wpa_supplicant to write to files in /proc/net.
This is needed for interface configuration - see e.g. nl80211_configure_data_frame_filters.

Bug: 77903086
Test: WiFi still working

Change-Id: I4b5e2b59eeeb6d0ac19dbcbcf0e7e80942247893
2018-04-26 16:00:49 +01:00
Jeff Vander Stoep
4cd7aa5969 vendor_init: allow stat() of /data dir
avc: denied { getattr } for path="/data" scontext=u:r:vendor_init:s0
tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=1

Bug: 78345561
Test: build/boot device. Denial is gone.
Change-Id: Ie858f1fe65aeb1845b00a5143c345e81aa2ec632
(cherry picked from commit 6f8d2628b3)
2018-04-25 22:23:07 -07:00
Zheng Zhang
f804681fb9 Allow mediaserver to access vendor_app_file am: 3623c2b6c0
am: 3a20fa8b42

Change-Id: Iea8a883012243e8c10cef84ec8932b3fa749e3d4
2018-04-25 22:21:04 -07:00
Zheng Zhang
3a20fa8b42 Allow mediaserver to access vendor_app_file
am: 3623c2b6c0

Change-Id: I079a3682e7177d09040588addc13b33512bb75bf
2018-04-25 22:14:28 -07:00
Max Bires
30d80f0c1c Adding labeling for vendor security patch prop am: 5cac1aa99c
am: ad3602d262

Test: Vendor security patch prop is properly labeled
Bug: 76428542
Change-Id: I034f2f2c9eab3667cfa92ea41b4b5f4afa1c7df7
Merged-In: I034f2f2c9eab3667cfa92ea41b4b5f4afa1c7df7
(cherry picked from commit 15a9fbc277)
2018-04-26 01:36:23 +00:00
Chia-I Wu
f16afc094d Make persist.sys.sf.native_mode an integer
This allows for more native modes.

Bug: 73824924
Test: adb shell setprop persist.sys.sf.native_mode 2
Change-Id: Iffdeadc8dc260de4b0c7f2b46aab08d64d25e3b1
Merged-In: Iffdeadc8dc260de4b0c7f2b46aab08d64d25e3b1
2018-04-25 11:35:51 -07:00
yro
64c7a758b4 Setting up sepolicies for statsd planB of listening to its own socket
Test: manual
Bug: 78318738
Change-Id: I45c3511860fbe6a1de45c6930052a8865b38986a
2018-04-25 02:20:36 -07:00
Zheng Zhang
3623c2b6c0 Allow mediaserver to access vendor_app_file
Currently, when vendor APK try to use MediaPlayer to play its audio
resource, it would fail due to this neverallow rules.

avc: denied { read } for path="/vendor/app/TicFitness/TicFitness.apk" dev="dm-1" ino=183 scontext=u:r:mediaserver:s0 tcontext=u:object_r:vendor_app_file:s0 tclass=file permissive=0

Bug: 78436043
Change-Id: Id910184c16955f9e4e4c8d3bb6eca2253ab59063
2018-04-25 06:00:59 +00:00
Joel Galenson
0ec62db2da Merge "Track otapreopt_chroot postinstall_file SELinux denial." into pi-dev
am: 1818b11242

Change-Id: I424010a696d3853e7ececffa242f8e118096cad2
2018-04-24 20:31:28 -07:00
TreeHugger Robot
1818b11242 Merge "Track otapreopt_chroot postinstall_file SELinux denial." into pi-dev 2018-04-25 03:22:47 +00:00
Jeff Vander Stoep
3d69c67a05 Merge "searchpolicy depends on FcSort" into pi-dev
am: 0e430da4f9

Change-Id: I70e979459cd1e378dba2eace90c0b877898e5495
2018-04-24 14:35:11 -07:00
Jeff Vander Stoep
3a3756feee searchpolicy depends on FcSort
Bug: 77965486
Test: run cts -m CtsSecurityHostTestCases -t
    android.cts.security.FileSystemPermissionTest#testDevHwRandomPermissions

Change-Id: Ib5965649e9b2b4bb0259383374dfac76cc0a8bd5
(cherry picked from commit cc541a80c3)
2018-04-24 14:12:50 -07:00
TreeHugger Robot
0e430da4f9 Merge "searchpolicy depends on FcSort" into pi-dev 2018-04-24 21:08:38 +00:00
Joel Galenson
aa4d582fbe Merge "Track otapreopt_chroot postinstall_file SELinux denial." am: fd87a92acf
am: d78b112efe

Change-Id: I030048f34578b10559c6e38bb5db2b6eead74e11
2018-04-24 12:30:25 -07:00
Joel Galenson
d78b112efe Merge "Track otapreopt_chroot postinstall_file SELinux denial."
am: fd87a92acf

Change-Id: I4c6cba7ef8f62dd052bc44eb9a999d0c19bb7e51
2018-04-24 12:26:21 -07:00
Joel Galenson
81f4377aba Track otapreopt_chroot postinstall_file SELinux denial.
Bug: 75287236
Test: Built policy.
Change-Id: I90301c33fd8c20e96cfbb424eaf80978e79c34f0
(cherry picked from commit 5c87b8797b)
2018-04-24 12:22:33 -07:00
Treehugger Robot
fd87a92acf Merge "Track otapreopt_chroot postinstall_file SELinux denial." 2018-04-24 19:21:54 +00:00
Steven Moreland
700337d2ee Merge "Allow dumpstate to be used as a lazy HAL." into pi-dev
am: faef020c89

Change-Id: Ibcce766b28f23960f482e3ff5c3a7361e11f9652
2018-04-24 11:21:34 -07:00
TreeHugger Robot
faef020c89 Merge "Allow dumpstate to be used as a lazy HAL." into pi-dev 2018-04-24 18:14:51 +00:00
Jeff Vander Stoep
cc541a80c3 searchpolicy depends on FcSort
Bug: 77965486
Test: run cts -m CtsSecurityHostTestCases -t
    android.cts.security.FileSystemPermissionTest#testDevHwRandomPermissions

Change-Id: Ib5965649e9b2b4bb0259383374dfac76cc0a8bd5
2018-04-24 11:03:22 -07:00
Android Build Merger (Role)
3aa6c34d59 Merge "Merge "Add metadata_file class for root of metadata folder." into pi-dev am: 1fb3bfba78" into pi-dev-plus-aosp 2018-04-24 17:41:30 +00:00
Paul Crowley
5a30c9d458 Merge "Add metadata_file class for root of metadata folder." into pi-dev
am: 1fb3bfba78

Change-Id: I913c0d5bd47334a540be3b9716ab0c269e238a70
2018-04-24 10:41:24 -07:00
Paul Crowley
67861bcc03 Add metadata_file class for root of metadata folder. am: 42bd1638bf
am: b494ab07fb

Change-Id: I25139c13561468d585814daa2f79b35a390730ee
2018-04-24 10:41:23 -07:00
Paul Crowley
b494ab07fb Add metadata_file class for root of metadata folder.
am: 42bd1638bf

Change-Id: I5db6b7f1ee3de342cb9a1fd185ff4913d1aba27d
2018-04-24 10:34:49 -07:00
Paul Crowley
1fb3bfba78 Merge "Add metadata_file class for root of metadata folder." into pi-dev 2018-04-24 17:32:52 +00:00
Joel Galenson
5c87b8797b Track otapreopt_chroot postinstall_file SELinux denial.
Bug: 75287236
Test: Built policy.
Change-Id: I90301c33fd8c20e96cfbb424eaf80978e79c34f0
2018-04-24 10:25:22 -07:00
Steven Moreland
0b1797b852 Allow dumpstate to be used as a lazy HAL.
hwservicemanager lost the permission to tell init to
start the dumpstate HAL when dumpstate was given this
permission exclusively.

Bug: 77489941 # problem introduced
Bug: 78509314 # converting dumpstate to lazy hals

Test: convert an instance of dumpstate into a lazy HAL,
    run bugreport, see denial, then add permission, and
    see bugreport start to work again.

Change-Id: I033701d8306200bebc0f250afe3d08f9e6ab98a1
2018-04-24 09:38:15 -07:00
Joel Galenson
f3a233a0a8 Merge "Remove some priv_app logspam." into pi-dev
am: 95758f47ee

Change-Id: Ic910bab535993d92d81e0c87b56911b43ded1c0f
2018-04-24 08:52:01 -07:00
TreeHugger Robot
95758f47ee Merge "Remove some priv_app logspam." into pi-dev 2018-04-24 15:44:55 +00:00
Wei Wang
5154fc1fb2 Merge "Allow dumpstate to kill dumpstate vendor HAL in timeout case" into pi-dev
am: d45dfbff95

Change-Id: I90a0270b7820073bcee257f5a11c1d2407f8d841
2018-04-23 21:27:17 -07:00
Wei Wang
d45dfbff95 Merge "Allow dumpstate to kill dumpstate vendor HAL in timeout case" into pi-dev 2018-04-24 04:24:04 +00:00
Pavel Maltsev
394dbe34a0 Move automotive HALs sepolicy to system/
Bug: 70637118
Test: build, flash and boot bat_land and owl automotive builds

Change-Id: I6db23258de30174d6db09d241e91b08aa5afedef
2018-04-23 15:46:41 -07:00