Skip to content

Commit

Permalink
yama: Only allow admin-only attach
Browse files Browse the repository at this point in the history
Setting this parameter to 'no attach' breaks the reworked MagiskHide.

Signed-off-by: Albert I <[email protected]>
  • Loading branch information
krasCGQ committed Apr 28, 2019
1 parent 27c3998 commit d24296a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/yama/yama_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define YAMA_SCOPE_CAPABILITY 2
#define YAMA_SCOPE_NO_ATTACH 3

static int ptrace_scope = YAMA_SCOPE_NO_ATTACH;
static int ptrace_scope = YAMA_SCOPE_CAPABILITY;

/* describe a ptrace relationship for potential exception */
struct ptrace_relation {
Expand Down

0 comments on commit d24296a

Please sign in to comment.