Reference

chsidfs(2)

change SID of a file system

NAME

chsidfs, fchsidfs - change SID of a file system

SYNOPSIS

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);

DESCRIPTION

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.

SEE ALSO

statfs_secure(2), fstatfs_secure(2)