2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00
criu/include/security.h
Ruslan Kuprieiev 09c3f5d0c7 security: add cr_fchown
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-02-10 16:54:31 +03:00

14 lines
366 B
C

#ifndef __CR_SECURITY_H__
#define __CR_SECURITY_H__
#include "proc_parse.h"
#include "protobuf/creds.pb-c.h"
extern int restrict_uid(unsigned int uid, unsigned int gid);
extern bool may_dump(struct proc_status_creds *);
extern bool may_restore(struct _CredsEntry *);
extern bool cr_user_is_root(void);
extern int cr_fchown(int fd);
#endif /* __CR_SECURITY_H__ */