chsid(2)

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.

From libselinux-dev 2002031409-4 in Debian 3.0 (Woody). Parsed by carta from the page's man source.