05.07.2014 Views

here - OSTA - Optical Storage Technology Association

here - OSTA - Optical Storage Technology Association

here - OSTA - Optical Storage Technology Association

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For operating systems that do not support the concept of a group identifier<br />

the implementation shall set this field to 2 32 - 1 to indicate an invalid GID,<br />

unless otherwise specified by the user.<br />

3.3.3.3 Uint32 Permissions<br />

/* Definitions: */<br />

/* Bit for a File for a Directory */<br />

/* ------- ------------------------ ---------------------------- */<br />

/* Execute May execute file May search directory */<br />

/* Write May change file contents May create and delete files */<br />

/* Read May examine file contents May list files in directory */<br />

/* ChAttr May change file attributes May change dir attributes */<br />

/* Delete May delete file May delete directory */<br />

#define OTHER_Execute 0x00000001<br />

#define OTHER_Write 0x00000002<br />

#define OTHER_Read 0x00000004<br />

#define OTHER_ChAttr 0x00000008<br />

#define OTHER_Delete 0x00000010<br />

#define GROUP_Execute 0x00000020<br />

#define GROUP_Write 0x00000040<br />

#define GROUP_Read 0x00000080<br />

#define GROUP_ChAttr 0x00000100<br />

#define GROUP_Delete 0x00000200<br />

#define OWNER_Execute 0x00000400<br />

#define OWNER_Write 0x00000800<br />

#define OWNER_Read 0x00001000<br />

#define OWNER_ChAttr 0x00002000<br />

#define OWNER_Delete 0x00004000<br />

The concept of permissions that deals with security is not completely portable<br />

between operating systems. This document attempts to maintain consistency<br />

among implementations in processing the permission bits by addressing the<br />

following basic issues:<br />

1. How should an implementation handle Owner, Group and Other<br />

permissions when the operating system has no concept of User and<br />

Group Ids?<br />

2. How should an implementation process permission bits when<br />

encountered, specifically permission bits that do not directly map to an<br />

operating system supported permission bit?<br />

3. What default values should be used for permission bits that do not<br />

directly map to an operating system supported permission bit when<br />

creating a new file?<br />

Owner, Group and Other<br />

In general, for operating systems that do not support User and Group Ids the<br />

following algorithm should be used when processing permission bits:<br />

When reading a specific permission, the logical OR of all three (owner,<br />

group, other) permissions should be the value checked. For example a file<br />

UDF 2.01<br />

72<br />

March50 April

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!