Rechercher une page de manuel
selinux_file_context_cmp
Langue: en
Version: 340220 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
selinux_file_context_cmp, selinux_file_context_verify - comparison of two file contexts.SYNOPSIS
#include <selinux/selinux.h>int selinux_file_context_cmp(const security_context_t a, const security_context_t b);
int selinux_file_context_verify(const char *path, mode_t mode);
DESCRIPTION
selinux_file_context_cmp compares two file contexts to see if their differences are "significant", the function runs the strcmp function ignoring the user componant of the file context.selinux_file_context_verify compares the file context on disk to the system default.
RETURN VALUE
Returns zero on success or -1 otherwise.SEE ALSO
selinux(8), selinux_lsetfilecon(3), matchpathcon(3), freecon(3), setfilecon(3), setfscreatecon(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre