libexplain  1.4.D001
Functions
libexplain/buffer/eperm.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_eperm_setgid (explain_string_buffer_t *sb)
void explain_buffer_eperm_accept (explain_string_buffer_t *sb)
void explain_buffer_eperm_kill (explain_string_buffer_t *sb)
void explain_buffer_eperm_sys_time (explain_string_buffer_t *sb, const char *syscall_name)
void explain_buffer_eperm_sys_tty_config (explain_string_buffer_t *sb, const char *syscall_name)
void explain_buffer_eperm_net_admin (explain_string_buffer_t *sb, const char *syscall_name)
void explain_buffer_eperm_mknod (explain_string_buffer_t *sb, const char *pathname, const char *pathname_caption, int mode)
void explain_buffer_eperm_unlink (explain_string_buffer_t *sb, const char *pathname, const char *pathname_caption, const char *syscall_name)
void explain_buffer_eperm_vague (explain_string_buffer_t *sb, const char *syscall_name)
void explain_buffer_eperm_cap_sys_admin (explain_string_buffer_t *sb, const char *syscall_name)

Function Documentation

Definition at line 24 of file accept.c.

void explain_buffer_eperm_cap_sys_admin ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_eperm_cap_sys_admin function is used to print an explanation of a EPERM error, in the case where the CAP_SYS_ADMIN capability ids required.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the offended system call.

Definition at line 25 of file cap_sys_admin.c.

Definition at line 25 of file kill.c.

void explain_buffer_eperm_mknod ( explain_string_buffer_t sb,
const char *  pathname,
const char *  pathname_caption,
int  mode 
)

The explain_buffer_eperm_mknod function is use to print an explanation of a EPERM error, in the case where the file system is incapable of making a node of the type specified.

Parameters:
sbThe string buffer to print into.
pathnameThe path of the attempted node creation.
pathname_captionThe name of the syscall argument containinbg the path of the attempted node creation.
modeThe S_IFMT bits describe what sort of node was attempted.

Definition at line 29 of file mknod.c.

void explain_buffer_eperm_net_admin ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_eperm_net_admin function may be used to print an explanation of an EPERM error, for syscalls that need CAP_NET_ADMIN capability.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the offending system call.

Definition at line 25 of file net_admin.c.

The explain_buffer_eperm-setgid function may be used to print an explanation of an EPERM error, for getgid or getgroups system calls.

Parameters:
sbThe string buffer to print into.

Definition at line 25 of file eperm.c.

void explain_buffer_eperm_sys_time ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_eperm_sys_time function may be used to print an explanation of an EPERM error, for syscalls that need CAP_SYS_TIME.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the offending system call.

Definition at line 24 of file sys_time.c.

void explain_buffer_eperm_sys_tty_config ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_eperm_sys_tty_config function may be used to print an explanation of an EPERM error, for syscalls that need CAP_SYS_TTY_CONFIG.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the offending system call.

Definition at line 24 of file sys_tty_config.c.

void explain_buffer_eperm_unlink ( explain_string_buffer_t sb,
const char *  pathname,
const char *  pathname_caption,
const char *  syscall_name 
)

The explain_buffer_eperm_unlink functions is used to print an explanation of a EPERM error, in the case where the sticky bit has been set.

Parameters:
sbThe string buffer to print into.
pathnameThe path of the attempted node creation.
pathname_captionThe name of the syscall argument containinbg the path of the attempted node creation.
syscall_nameThe name of the offended system call.

Definition at line 31 of file unlink.c.

void explain_buffer_eperm_vague ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_eperm_unlink functions is used to print an explanation of a EPERM error, in the case where the circumstances are a bit vague or non-specific.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the offended system call.

Definition at line 24 of file vague.c.