chsid2
Change security identifier of a file
Usage
#include <fs_secure.h>
int chsid(const char *path, security_id_t sid);
int fchsid(int fd, security_id_t sid);
Overview
The SID of the file given by path or referenced by fd is changed to the value specified by the sid parameter.
Return value
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.