#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);
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.
- security
- The security server.
- name
- The name of the device.
- fs_sid
- The file system SID.
- file_sid
- The file SID.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.