Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

su_sensitive domain addition #10

Open
lbdroid opened this issue Oct 26, 2015 · 3 comments
Open

su_sensitive domain addition #10

lbdroid opened this issue Oct 26, 2015 · 3 comments

Comments

@lbdroid
Copy link

lbdroid commented Oct 26, 2015

This would be a domain that can only be accessed through inputting of a strong password every time it is requested.

The key difference between su and su_sensive would be that su_sensitive will have permission to modify kernel security -- set permissive, reload selinux policy, etc.

It is important to keep this permission very highly protected, since it can be used to wreak all kinds of havoc, like modifying the boot image to disable dm-verity, replace the verity metadata and key, and modify the system partition without being immediately obvious.

I will discuss use case in another issue shortly.

phhusson added a commit that referenced this issue Nov 1, 2015
This is only first RFC, as a basis for discussion.
See issues #4, #10, #11, #13, #15
@phhusson
Copy link
Owner

phhusson commented Nov 1, 2015

This needs to take extra thoughts about implementation, have you got any idea?
The only thing I have in mind is allowing su => su_sensitive transition, but that means any app with su can escalate to su_sensitive
We could have (again) a dedicated su_daemon context, whose only right is to transition to either su or su_sensitive

@lbdroid
Copy link
Author

lbdroid commented Nov 1, 2015

su_sensitive needs to be exclusively for manual use by the user, so should only be accessible via adb shell or some mechanism where we can verify that a real human is typing in the commands.

@phhusson
Copy link
Owner

phhusson commented Nov 1, 2015

I switched su daemon to a su_daemon context in phhusson/super-bootimg@c8c86c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants