2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00
criu/include/security.h

14 lines
366 B
C
Raw Normal View History

#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__ */