getsldname(2) システムコールは、 path_name (パス名) に対する SLD 名を、指定された slabel (機密ラベル) で取得します。詳細は、getsldname(2) のマニュアルページを参照してください。fgetsldname(2) システムコールは、ファイル記述子を使用します。
int getsldname( const char *path_name, const bslabel_t *slabel, char *name_buf, const int len); int fgetsldname( const int fd, const bslabel_t *slabel_p, char *name_buf, const int len);