Functions | |
int | vc_syscall (uint32_t cmd, xid_t xid, void *data) |
The generic vserver syscall. | |
int | vc_get_version () |
Returns the version of the current kernel API. | |
xid_t | vc_new_s_context (xid_t ctx, unsigned int remove_cap, unsigned int flags) |
Moves current process into a context. | |
int | vc_set_ipv4root (uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips) |
Sets the ipv4root information. | |
xid_t | vc_ctx_create (xid_t xid) |
Creates a context without starting it. | |
int | vc_ctx_migrate (xid_t xid) |
Moves the current process into the specified context. | |
int | vc_get_rlimit (xid_t xid, int resource, struct vc_rlimit *lim) |
Returns the limits of resource. | |
int | vc_set_rlimit (xid_t xid, int resource, struct vc_rlimit const *lim) |
Sets the limits of resource. | |
int | vc_ctx_kill (xid_t ctx, pid_t pid, int sig) |
Sends a signal to a context/pid. | |
int | vc_get_iattr (char const *filename, xid_t *xid, uint_least32_t *flags, uint_least32_t *mask) |
Returns information about attributes and assigned context of a file. | |
xid_t | vc_get_task_xid (pid_t pid) |
Returns the context of the given process. | |
xid_t | vc_getfilecontext (char const *filename) |
Returns the context of filename . |
|
Creates a context without starting it. This functions initializes a new context. When already in a freshly created context, this old context will be discarded.
|
|
Sends a signal to a context/pid. Special values for pid are:
|
|
Moves the current process into the specified context.
|
|
Returns information about attributes and assigned context of a file.
This function returns the VC_IATTR_XXX flags and about the assigned context of a file. To request an information, the appropriate bit in
E.g. to receive the assigned context, the
Possible flags are
|
|
Returns the limits of resource.
|
|
Returns the context of the given process.
|
|
Returns the version of the current kernel API.
|
|
Returns the context of
This function calls vc_get_iattr() with appropriate arguments to determine the context of
WARNING: this function can modify
|
|
Moves current process into a context. Puts current process into context ctx, removes the capabilities given in remove_cap and sets flags.
|
|
Sets the ipv4root information.
|
|
Sets the limits of resource.
|
|
The generic vserver syscall. This function executes the generic vserver syscall. It uses the correct syscallnumber (which may differ between the different architectures).
|