From a18f4acc27eede603bbfc94a76be259dd2eaf3a0 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 13 Jan 2004 14:19:15 +0000 Subject: [PATCH] added declarations for the ext2fs functions git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@568 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/vserver.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 2d19794..fc97570 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -95,6 +95,9 @@ #define VC_CAP_LEASE 28 #define VC_CAP_QUOTACTL 29 +#define VC_IMMUTABLE_FILE_FL 0x00000010l +#define VC_IMMUTABLE_LINK_FL 0x00008000l +#define VC_IMMUTABLE_ALL (VC_IMMUTABLE_LINK_FL|VC_IMMUTABLE_FILE_FL) #ifdef __cplusplus extern "C" { @@ -156,6 +159,13 @@ extern "C" { pid_t vc_X_getinitpid(pid_t pid); + xid_t vc_X_get_filecontext(int fd); + int vc_X_set_filecontext(int fd, xid_t ctx); + + int vc_X_get_ext2flags(int fd, long *flags); + int vc_X_set_ext2flags(int fd, long set_flags, long del_flags); + + int vc_text2cap(char const *); char const * vc_cap2text(int); -- 1.8.1.5