SGI_REVOKE(2)							 SGI_REVOKE(2)
      sgi_revoke	- revoke access	to a file
      #include <sys/mac_label.h>
     int sgi_revoke(char *fname);
     The sgi_revoke system call	invalidates all	currently open file
     descriptors referencing the file named by fname.
     sgi_revoke	requires that the calling process have appropriate privilege.
     If	_POSIX_CAP is in effect, the appropriate capability is CAP_DEVICE_MGT.
     sgi_revoke	will fail if one or more of the	following are true:
     [EPERM]	    The	calling	process	lack appropriate privilege.
     [EINVAL]	    The	named file is not a character-special file.
     sleep(3), alarm(2), pause(2), schedctl(2),	setitimer(2).
									PPPPaaaaggggeeee 1111 [ Back ]
 |