libexplain  1.4.D001
Functions
libexplain/buffer/does_not_have_inode_modify_permission.c File Reference
#include <libexplain/ac/limits.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/caption_name_type.h>
#include <libexplain/buffer/dac.h>
#include <libexplain/buffer/does_not_have_inode_modify_permission.h>
#include <libexplain/buffer/errno/path_resolution.h>
#include <libexplain/buffer/file_type.h>
#include <libexplain/buffer/gettext.h>
#include <libexplain/buffer/uid.h>
#include <libexplain/dirname.h>
#include <libexplain/name_max.h>

Go to the source code of this file.

Functions

void explain_buffer_does_not_have_inode_modify_permission1 (explain_string_buffer_t *sb, const char *pathname, const struct stat *pathname_st, const char *caption, const explain_have_identity_t *hip)
static void process_does_not_match_the_owner_uid (explain_string_buffer_t *sb, const char *kind_of_uid, const char *puid, const char *caption, int st_uid)
void explain_buffer_does_not_have_inode_modify_permission_fd (explain_string_buffer_t *sb, int fildes, const char *fildes_caption)
void explain_buffer_does_not_have_inode_modify_permission_fd_st (explain_string_buffer_t *sb, const struct stat *fildes_st, const char *fildes_caption, const explain_have_identity_t *hip)
void explain_buffer_does_not_have_inode_modify_permission (explain_string_buffer_t *sb, const char *comp, const struct stat *comp_st, const char *caption, const char *dir, const struct stat *dir_st, const explain_have_identity_t *hip)

Function Documentation

void explain_buffer_does_not_have_inode_modify_permission ( explain_string_buffer_t sb,
const char *  comp,
const struct stat *  comp_st,
const char *  caption,
const char *  dir,
const struct stat *  dir_st,
const explain_have_identity_t hip 
)

Definition at line 185 of file does_not_have_inode_modify_permission.c.

void explain_buffer_does_not_have_inode_modify_permission1 ( explain_string_buffer_t sb,
const char *  pathname,
const struct stat *  pathname_st,
const char *  caption,
const explain_have_identity_t hip 
)

Definition at line 36 of file does_not_have_inode_modify_permission.c.

void explain_buffer_does_not_have_inode_modify_permission_fd ( explain_string_buffer_t sb,
int  fildes,
const char *  fildes_caption 
)

The explain_buffer_does_not_have_inode_modify_permission_fd function may be used to provide an explanation in the case where a process does not have sufficent permissions to modify an inode, as given by a file descriptor.

Parameters:
sbThe string buffer to print into.
fildesThe problematic file descriptor
fildes_captionThe name of the problematic system call argument

Definition at line 106 of file does_not_have_inode_modify_permission.c.

void explain_buffer_does_not_have_inode_modify_permission_fd_st ( explain_string_buffer_t sb,
const struct stat *  fildes_st,
const char *  fildes_caption,
const explain_have_identity_t hip 
)

Definition at line 128 of file does_not_have_inode_modify_permission.c.

static void process_does_not_match_the_owner_uid ( explain_string_buffer_t sb,
const char *  kind_of_uid,
const char *  puid,
const char *  caption,
int  st_uid 
) [static]

Definition at line 67 of file does_not_have_inode_modify_permission.c.