Displaying 1 result from an estimated 1 matches for "printmylabel".
Did you mean:
printlabel
2007 May 29
0
LoMAC module: cannot get clearance level revoked
...;, fname );
exit( -1 );
}
if ( 0 != mac_to_text( filelabel, &buf ) ) {
fprintf( stderr, "printfilelabel(%s): failed to convert label\n", fname
);
exit( -1 );
}
printf( "\tfilelabel(%s) is %s\n", fname, buf );
free( buf );
mac_free( filelabel );
}
void printmylabel() {
mac_t mylabel;
char *buf;
if ( 0 != mac_prepare_process_label( &mylabel ) ) {
fprintf( stderr, "printmylabel: failed to prepare label" );
exit( -1 );
}
if ( 0 != mac_get_proc( mylabel ) ) {
fprintf( stderr, "printmylabel: failed to get label" );...