Commit Graph

84 Commits

Author SHA1 Message Date
Alex Naidis 4bea9a136d pa: sepolicy: update and reenable for N
This commit updates the sepolicy items for N.
Unneeded policies are removed and CMTE related
policies are removed too (for now).

Change-Id: I733ab8861fad6d8eb0cbb6bf256e726b17eaab76
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-11-09 21:09:01 +01:00
Evan Anderson 38bcb0cb79 sepolicy: Revert sdcard permission adds
These aren't needed anymore

Revert "sepolicy: treat fuseblk as sdcard_external"

This reverts commit 4bd767096f.

Change-Id: Ibf5e272a328dff29e7642b0cce744ff2584eaba5
Signed-off-by: Evan Anderson <evananderson@aospa.co>

Revert "sepolicy: allow installd to query ASEC size"

This reverts commit baaf6d248c.

Change-Id: I4ad3cd353fcfe2996a501299c4a21b7bccc1b894
Signed-off-by: Evan Anderson <evananderson@aospa.co>

Revert "sepolicy: allow vold to create files on external sdcard"

This reverts commit ff639e9bcb.

Change-Id: Ib09bfc8c547383a2628c51d21198da4efbb3ce76

Revert "sepolicy: allow vold to mount ext4 sdcard"

This reverts commit 8fb531bd7f.

Change-Id: Ib87eb218b6467563214cc03bf5ff4228da58dbb3
2016-08-30 16:57:04 -04:00
Alexis Rico 07f879ab5f Merge remote-tracking branch 'aospa/marshmallow-caf' into HEAD 2016-08-09 18:19:36 -04:00
Ricardo Cerqueira a4209009f3 selinux: Fix healthd's access to /dev nodes
Our healthd's support for power-on alarms adds some steps that imply
reading files its user doesn't own. Let it.

Change-Id: I3d4735aaab8fbec7acc460f812bc21f1dfa516ab
2016-08-07 21:45:59 -04:00
Steve Kondik 240b53d3c6 PA: Fix remaining IOP denials
Change-Id: I1731cd1c85918522a7981ea623b648a811dd9881
2016-07-25 19:20:50 -04:00
Jake Weinstein b3ab692480 sepolicy: more IOP denial fixes
Change-Id: I0e2914b976c29f13200cde0ac6169f2408224a1a
2016-07-25 01:44:35 -04:00
Alex Naidis 54e34596b1 sepolicy: adress IOP related denials globally
* these denials happen globally on all caf devices using IOP
* move the fixes here

Change-Id: If59df8f7d8e74fd1a11436b4d1e1e9caa7527f17
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-07-19 19:20:37 +02:00
Alex Naidis a12feb30c9 sepolicy: app: extend sepolicy for sockets
Change-Id: I7369060d42d973c90f2a8e6242fd3e3f6dbf50a1
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-07-06 15:01:29 +02:00
thecrazyskull cfc3800a16 Merge remote-tracking branch 'aospa/cmte-refactor' into HEAD
Change-Id: I30c0a2b82e5fe919a486c8d6af27e136b07bc5f6
2016-06-11 16:04:44 -04:00
Matthias Yzusqui 5a71678161 cm: sepolicy: allow platform apps to execute render scripts
* Needed by Gallery3D Photo Editor to apply effects like:
  Vignette and Graduated.

Change-Id: I7b07a974fbdb77abbaba1c15a21e918406d2175b
2016-06-09 09:49:48 -04:00
codeworkx fa2d439ccc cm: sepolicy: allow platform apps to crop user images
Needed for gallery3d when setting contact pics

avc: denied { write } for comm=4173796E635461736B202334
path="/data/data/com.android.settings/cache/CropEditUserPhoto.jpg" dev="mmcblk0p50" ino=65849
scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=file
permissive=0

03-05 13:07:40.741  22060-22207/com.android.gallery3d W/System.err﹕ java.io.IOException: write
failed: EACCES (Permission denied)

Change-Id: Iaa7f75abfd41c86e1a321d5f35b950f9dc7eb930
2016-06-09 09:49:44 -04:00
Ed Falk a70395ab97 sepolicy: allow vold to trim persist
Change-Id: I6441c00bfd173f1f3fd4c09a67c678c5bd4f8090
Issue-id: SYSTEMS-62
2016-06-09 09:24:18 -04:00
codeworkx de4ad91867 sepolicy: label exfat and ntfs mkfs executables
Change-Id: Ic5e32818bc54993f4e8c2377cbec64f9444f6d8a
2016-06-09 09:21:59 -04:00
dhacker29 69b1d43ac4 sepolicy: Set the context for fsck.exfat/ntfs to fsck_exec
This matches the policy for fsck.f2fs, although it still needs to run
as fsck_untrusted for public volumes

Change-Id: Ia04e7f8902e53a9926a87f0c99e603611cc39c5d
2016-06-09 09:21:32 -04:00
Keith Mok fcc1e5d356 sepolicy: Add permission for formatting user/cache partition
If the "formattable" fstab flag is set, init will tries
to format that partition, added the required policy to allow it.

Change-Id: I858b06aa3ff3ce775cf7676b09b9960f2558f7f6
2016-06-09 09:21:01 -04:00
Keith Mok bafad0fab1 sepolicy: Add domain for mkfs binaries
The init binary must transition to another domain when calling out to
executables. Create the mkfs domain for mkfs.f2fs such that init can
transition to it when formatting userdata/cache partitions if the
"formattable" flag is set.

Change-Id: I1046782386d171a59b1a3c5441ed265dc0824977
2016-06-09 09:20:50 -04:00
thecrazyskull f43ebf7bc2 sepolicy: fix derp
Change-Id: Ieb37aaad9451a6f021561d41d44b7a2fc064c0c9
2016-04-04 07:58:31 -04:00
d34d e591018925 Themes: Refactor themes to vendor/theme [3/5]
Change-Id: I6abea6ead1eb1980ec25f4184996cb234de21788
2016-03-13 02:55:11 +01:00
Jake Weinstein 63c94dead6 PA: fix more Browser denials 2016-01-01 23:09:24 +00:00
Valters Strods ad7d85cb00 pa: Merge makefiles and rewrite dependency updater
There is no reason for the makefiles to be split up as they have
been. They are not long enough to be hard to oversee in a single
file and, arguably, are even easier to manage in a single file.

Additionally, the dependency updater has been rewritten to be a
bit more flexible with its inputs and outputs. The usage stays
exactly the same.

Conflicts:
	configs/pa_extras.mk
	configs/system.mk
	main.mk
	prebuilt/app/Android.mk

Change-Id: Ie26c3b89721d03825fa3116ab5fe0cae76ec55ab
2015-12-28 14:22:33 +02:00
Jake Weinstein 5a54538b74 vendor: BOARD_SEPOLICY_UNION is deprecated 2015-12-27 20:38:46 +00:00
Oliver Reiche 8d0e304aeb [1/2] SEPolicy: Allow add and find for EdgeGestureService
Cross dependency to commit in 'frameworks/base':
'[2/2] Implement EdgeGestureService'

Change-Id: I4329aea5c95c6b4dd0c34aab13d6e1c04bca2233
2015-12-27 20:38:46 +00:00
jrizzoli a8c12f581a PA: sepolicy: show some SWE love
Change-Id: Iea499ca692851b1feacd0fb4f63a9cee664cd3a1
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
2015-12-27 20:38:46 +00:00
Jake Weinstein 48531a5609 PA: fix themes denial 2015-11-12 23:29:56 +00:00
Jake Weinstein 82774b783b PA: Fix service contexts for theme engine
* Partial cherry-pick of the following commit by Adnan Begovic of Cyanogen
  (Decad3nce): c3d3969971
2015-11-12 23:29:45 +00:00
jumoog 69b38448f4 [1/2] SEPolicy: Add Edgegesture service.
Based on http://review.cyanogenmod.org/78086

Change-Id: Ica17323066e5cadb35a1832c13c1b93c97ed4247
2015-08-20 12:08:00 +03:00
Valter Strods 134ab592ec PA: Clean up the service contexts file
No file should have mixed indents (tabs vs spaces) and no file should
be missing the newline at the end of the file. Kthx.

Change-Id: Ie9f7b856f4122be60ee47a9a29729e1da059264d
2015-08-20 12:00:31 +03:00
Pawit Pornkitprasan 7999f2180f sepolicy: allow vold to mount fuse-based sdcard
exfat and NTFS-3g requires access to /dev/fuse

Change-Id: I35b13ada586c8de3fbe04156c2d10bf5e3c07b3a
2015-07-17 22:41:01 -05:00
Pawit Pornkitprasan 8fb531bd7f sepolicy: allow vold to mount ext4 sdcard
When vold mounts an ext4 sdcard, it needs to force the context to
sdcard_external.

avc:  denied  { relabelfrom } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:labeledfs:s0 tclass=filesystem
avc:  denied  { relabelto } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:sdcard_external:s0 tclass=filesystem
avc:  denied  { relabelfrom } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:sdcard_external:s0 tclass=filesystem

Change-Id: I80f42fbdf738dee10958ce1bdc1893a41234f0d9
2015-07-17 22:41:01 -05:00
Pawit Pornkitprasan ff639e9bcb sepolicy: allow vold to create files on external sdcard
This is required for ASEC support. Vold can already create and
access directories, but do not yet have the permission for files.

Change-Id: I5082bbff692e5dc53c7000e4b3a293e42d33f901
2015-07-17 22:41:01 -05:00
Pawit Pornkitprasan baaf6d248c sepolicy: allow installd to query ASEC size
installd need to query ASEC size on sdcard_external
to show on the Settings -> Apps page correctly.

Change-Id: I2d9a49b8f0652f05d73d0ff464a3835595e2cc3c
2015-07-17 22:41:01 -05:00
Pawit Pornkitprasan 4bd767096f sepolicy: treat fuseblk as sdcard_external
Allow fuse-mounted NTFS/exFAT file systems to be written to

Change-Id: I1492914dd269a305e27aba58e61064d853adf2bc
2015-07-17 22:41:01 -05:00
Steve Kondik 574b7ec420 sepolicy: Let drmserver scan themes
Change-Id: I7675b302723ef8700067ae9ef237daf6346a6627
2015-01-26 05:47:32 -05:00
Clark Scheff c314996a3d Themes: Port to AOSPA [5/6]
Adds sepolicy for themes dependent on build commit

Change-Id: Ie25ce0fb49e873f4c810b759d65b33b5cc984398
2015-01-21 23:18:21 -05:00