diff options
author | Nick Kralevich <nnk@google.com> | 2014-07-25 22:01:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-07-25 22:01:51 +0000 |
commit | 7045f37119f70c24eeea0624bfc8e25a2f9629a5 (patch) | |
tree | 664a25827a5345d3a2f5c73a4e818fac4f693c01 /drm/libdrmframework/include | |
parent | 1342065ac08f527769dde614c5e7c2980b56bf88 (diff) | |
parent | bb5b41a39f7e93a8df444ae0a1c71495531d265e (diff) | |
download | frameworks_av-7045f37119f70c24eeea0624bfc8e25a2f9629a5.zip frameworks_av-7045f37119f70c24eeea0624bfc8e25a2f9629a5.tar.gz frameworks_av-7045f37119f70c24eeea0624bfc8e25a2f9629a5.tar.bz2 |
am bb5b41a3: am a018cd49: Merge "Add SELinux MAC to DrmManagerService."
* commit 'bb5b41a39f7e93a8df444ae0a1c71495531d265e':
Add SELinux MAC to DrmManagerService.
Diffstat (limited to 'drm/libdrmframework/include')
-rw-r--r-- | drm/libdrmframework/include/DrmManagerService.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drm/libdrmframework/include/DrmManagerService.h b/drm/libdrmframework/include/DrmManagerService.h index 8bc59b4..45cee2e 100644 --- a/drm/libdrmframework/include/DrmManagerService.h +++ b/drm/libdrmframework/include/DrmManagerService.h @@ -42,9 +42,28 @@ public: static void instantiate(); private: + enum drm_perm_t { + CONSUME_RIGHTS = 0, + SET_PLAYBACK_STATUS = 1, + OPEN_DECRYPT_SESSION = 2, + CLOSE_DECRYPT_SESSION = 3, + INITIALIZE_DECRYPT_UNIT = 4, + DECRYPT = 5, + FINALIZE_DECRYPT_UNIT = 6, + PREAD = 7, + }; + + static const char *const drm_perm_labels[]; + DrmManagerService(); virtual ~DrmManagerService(); + static const char *get_perm_label(drm_perm_t perm); + + static bool selinuxIsProtectedCallAllowed(pid_t spid, drm_perm_t perm); + + static bool isProtectedCallAllowed(drm_perm_t perm); + public: int addUniqueId(bool isNative); |