3 #include <minix/callnr.h>
6 #include <minix/vfsif.h>
8 /* This calling is used to access a particular file. */
9 /*===========================================================================*
11 *===========================================================================*/
14 struct dir_record
*rip
;
17 /* Temporarily open the file whose access is to be checked. */
18 caller_uid
= fs_m_in
.REQ_UID
;
19 caller_gid
= fs_m_in
.REQ_GID
;
21 /* Temporarily open the file. */
22 if ( (rip
= get_dir_record(fs_m_in
.REQ_INODE_NR
)) == NULL
) {
23 printf("ISOFS(%d) get_dir_record by fs_access() failed\n", SELF_E
);
27 /* For now ISO9660 doesn't have permission control (read and execution to
28 * everybody by default. So the access is always granted. */
30 release_dir_record(rip
); /* Release the dir record used */