X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvserver.h;h=b2858fa48997477402a879df1774322a15c624c2;hb=d641b1e3fac4d105ac0c7d0739d4cff765387264;hp=f8da611c2f1325a93fdec2bbe157522595372048;hpb=8a3f3a69bb09b7b9bf63dd623c4993b02cfe021f;p=util-vserver.git diff --git a/lib/vserver.h b/lib/vserver.h index f8da611..b2858fa 100644 --- a/lib/vserver.h +++ b/lib/vserver.h @@ -392,6 +392,8 @@ extern "C" { */ vc_vci_t vc_get_vci(); + int vc_get_kernel(); + /** \brief Moves current process into a context * \ingroup syscalls * @@ -860,6 +862,15 @@ extern "C" { int vc_set_badness(xid_t xid, int64_t badness); + /** \brief Namespaces allowed to unshare */ + struct vc_umask { + uint_least64_t umask; + uint_least64_t mask; + }; + + int vc_get_umask(xid_t xid, struct vc_umask *umask); + int vc_set_umask(xid_t xid, struct vc_umask const *umask); + /** \brief Information about parsing errors * \ingroup helper */ @@ -932,7 +943,10 @@ extern "C" { int vc_list2ccap(char const *, size_t len, struct vc_err_listparser *err, struct vc_ctx_caps *); - + char const * vc_loumask2text(uint_least64_t *); + int vc_list2umask(char const *, size_t len, + struct vc_err_listparser *err, + struct vc_umask *); int vc_list2cflag(char const *, size_t len, struct vc_err_listparser *err, struct vc_ctx_flags *flags); @@ -991,6 +1005,7 @@ extern "C" { vcFEATURE_VNET, vcFEATURE_VSTAT, vcFEATURE_PPTAG, vcFEATURE_PIDSPACE, vcFEATURE_SPACES, vcFEATURE_PERSISTENT, vcFEATURE_PIVOT_ROOT, vcFEATURE_MEMCG, vcFEATURE_DYNAMIC, + vcFEATURE_BME, } vcFeatureSet;