chsidfs(2)

chsidfs2

Change sid of a file system

Usage

int chsidfs(const char *path, security_id_t fs_sid, security_id_t f_sid);
int fchsidfs(int fd, security_id_t fs_sid, security_id_t f_sid);

Overview

The chsidfs and fchsidfs calls may be used to change the SID of a file system using the fs_sid parameter and/or the SID to use for unlabeled files using the f_sid parameter. Either SID parameter may be null, in which case the corresponding SID will not be changed.

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.