20 #include "audio_capture_manager.h"
22 #include "acm_session_mgr.h"
23 #if defined(DROP_ROOT_PRIV)
27 #if defined(DROP_ROOT_PRIV)
28 static bool drop_root()
30 bool ret =
false,retval =
false;
31 cap_user appcaps = {{0, 0, 0,
'\0', 0, 0, 0,
'\0'}};
32 ret = isBlocklisted();
35 INFO(
"NonRoot feature is disabled\n");
39 INFO(
"NonRoot feature is enabled\n");
41 appcaps.user_name = NULL;
42 if(init_capability() != NULL) {
43 if(drop_root_caps(&appcaps) != -1) {
44 if(update_process_caps(&appcaps) != -1) {
45 read_capability(&appcaps);
65 int main(
int argc,
char *argv[])
68 #if defined(DROP_ROOT_PRIV)
71 ERROR(
"drop_root function failed!\n");