bonic: libc: cpuacct support for setuid functions
Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
This commit is contained in:
@@ -12,7 +12,7 @@ pid_t _waitpid (pid_t, int*, int, struct rusage*);
|
||||
int waitid (int, pid_t, struct siginfo_t*, int,void*);
|
||||
pid_t __sys_clone (int, void*, int*, void*, int*);
|
||||
int execve (const char*, char* const*, char* const*);
|
||||
int setuid (uid_t);
|
||||
int __setuid (uid_t);
|
||||
uid_t getuid (void);
|
||||
gid_t getgid (void);
|
||||
uid_t geteuid (void);
|
||||
@@ -26,8 +26,8 @@ pid_t getppid (void);
|
||||
pid_t setsid (void);
|
||||
int setgid (gid_t);
|
||||
int seteuid (uid_t);
|
||||
int setreuid (uid_t, uid_t);
|
||||
int setresuid (uid_t, uid_t, uid_t);
|
||||
int __setreuid (uid_t, uid_t);
|
||||
int __setresuid (uid_t, uid_t, uid_t);
|
||||
int setresgid (gid_t, gid_t, gid_t);
|
||||
void* __brk (void*);
|
||||
int kill (pid_t, int);
|
||||
|
Reference in New Issue
Block a user