next up previous contents index
Next: 11.2.11 port_sid: Obtain the Up: 11.2 oskit_security: Security Server Previous: 11.2.9 load_policy: Load a

11.2.10 fs_sid: Obtain SIDs for an unlabeled file system

 

SYNOPSIS

#include <oskit/flask/security.h>

OSKIT_COMDECL oskit_security_fs_sid(oskit_security_t *security, char *name, [out] oskit_security_id_t *fs_sid, [out] oskit_security_id_t *file_sid);

DESCRIPTION

The oskit_security_fs_sid function returns SIDs to use for an unlabeled file system mounted from the device specified by dev. The file system code calls this function when a process attempts to mount an unlabeled file system. The value for the dev parameter is a string of the form ``major:minor'' where both the major and minor number are in hexadecimal and are right justified in a two character field, as returned by the kdevname function on the device number. The fs_sid parameter is set to the SID to use for the file system, and the file_sid parameter is set to the SID to use for any existing files in the file system.

PARAMETERS

security
The security server.
name
The name of the device.
fs_sid
The file system SID.
file_sid
The file SID.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group