summaryrefslogtreecommitdiff
path: root/tests/stdio_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-10-26 12:54:32 -0700
committerElliott Hughes <enh@google.com>2017-10-26 12:56:21 -0700
commit374848a16e7d4ed2394474bf5298cbe4ddab265a (patch)
tree74e9d08c5e26a69e16eba303fa0d17968dc396d1 /tests/stdio_test.cpp
parentc6291b081d2089ba7a16d7777fb2713d828d537f (diff)
The main thread should just INHERIT its scheduler attributes.
Explicitly setting SCHED_OTHER/0 was causing SELinux denials: 02-08 09:58:05.430 661 661 I auditd : type=1400 audit(0.0:20): avc: denied { sys_nice } for comm="grep" capability=23 scontext=u:r:init-qcom-devstart-sh:s0 tcontext=u:r:init-qcom-devstart-sh:s0 tclass=capability permissive=0 02-08 09:58:05.430 662 662 I auditd : type=1400 audit(0.0:21): avc: denied { sys_nice } for comm="sed" capability=23 scontext=u:r:init-qcom-devstart-sh:s0 tcontext=u:r:init-qcom-devstart-sh:s0 tclass=capability permissive=0 Also use public pthread API rather than modifying the main thread's pthread_attr_t directly. Bug: http://b/68328561 Test: strace -f -e true Change-Id: I65b7ab3ce285a2901a6eaacb243000c780883c3a
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions