Displaying 1 result from an estimated 1 matches for "printfilelabel".
2007 May 29
0
LoMAC module: cannot get clearance level revoked
...advice you may have. I am using FreeBSD 6.1. All MAC stuff
enabled, the corresponding module loaded, and other models evaluated (Biba,
MLS, combo).
Thanks,
Kirill
=== TEST PROGRAM ===
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/mac.h>
void printfilelabel(const char * fname) {
mac_t filelabel;
char *buf;
if ( 0 != mac_prepare_file_label( &filelabel ) ) {
fprintf( stderr, "printfilelabel(%s): failed to prepare label\n", fname
);
exit( -1 );
}
if ( 0 != mac_get_file( fname, filelabel ) ) {
fprintf( stderr, "pri...