ObjFW  Check-in [02ccf37477]

Overview
Comment:OFSandbox: Revert using a bitfield

GCC does not support properties that use a bit field.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 02ccf37477ed44848c1280598412d3565fd1b85f1cd7b5e33f1c4790a4d7652e
User & Date: js on 2017-04-14 02:28:10
Other Links: manifest | tags
Context
2017-04-14
05:13
atomic_*.h: Add missing _Nullable check-in: 6f9c0e8eb2 user: js tags: trunk
02:28
OFSandbox: Revert using a bitfield check-in: 02ccf37477 user: js tags: trunk
02:16
runtime: Add support for emergency exceptions check-in: 13c2017326 user: js tags: trunk
Changes

Modified src/OFSandbox.h from [68c11f76c6] to [f00e17ef0d].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*!
 * @class OFSandbox OFSandbox.h ObjFW/OFSandbox.h
 *
 * @brief A class which describes a sandbox for the application.
 */
@interface OFSandbox: OFObject <OFCopying>
{
	bool _allowsStdIO: 1;
	bool _allowsReadingFiles: 1;
	bool _allowsWritingFiles: 1;
	bool _allowsCreatingFiles: 1;
	bool _allowsCreatingSpecialFiles: 1;
	bool _allowsTemporaryFiles: 1;
	bool _allowsIPSockets: 1;
	bool _allowsMulticastSockets: 1;
	bool _allowsChangingFileAttributes: 1;
	bool _allowsFileOwnerChanges: 1;
	bool _allowsFileLocks: 1;
	bool _allowsUNIXSockets: 1;
	bool _allowsDNS: 1;
	bool _allowsUserDatabaseReading: 1;
	bool _allowsFileDescriptorSending: 1;
	bool _allowsFileDescriptorReceiving: 1;
	bool _allowsTape: 1;
	bool _allowsTTY: 1;
	bool _allowsProcessOperations: 1;
	bool _allowsExec: 1;
	bool _allowsProtExec: 1;
	bool _allowsSetTime: 1;
	bool _allowsPS: 1;
	bool _allowsVMInfo: 1;
	bool _allowsChangingProcessRights: 1;
	bool _allowsPF: 1;
	bool _allowsAudio: 1;
	bool _allowsBPF: 1;
}

/*! Allows IO operations on previously allocated file descriptors. */
@property bool allowsStdIO;

/*! Allows read access to the file system. */
@property bool allowsReadingFiles;







|
<
<
|
<
|
<
<
|
<
|
<
<
|
<
|
<
<
|
<
<
|
<
<
|
<
<
<







25
26
27
28
29
30
31
32


33

34


35

36


37

38


39


40


41



42
43
44
45
46
47
48
/*!
 * @class OFSandbox OFSandbox.h ObjFW/OFSandbox.h
 *
 * @brief A class which describes a sandbox for the application.
 */
@interface OFSandbox: OFObject <OFCopying>
{
	bool _allowsStdIO, _allowsReadingFiles, _allowsWritingFiles;


	bool _allowsCreatingFiles, _allowsCreatingSpecialFiles;

	bool _allowsTemporaryFiles, _allowsIPSockets, _allowsMulticastSockets;


	bool _allowsChangingFileAttributes, _allowsFileOwnerChanges;

	bool _allowsFileLocks, _allowsUNIXSockets, _allowsDNS;


	bool _allowsUserDatabaseReading, _allowsFileDescriptorSending;

	bool _allowsFileDescriptorReceiving, _allowsTape, _allowsTTY;


	bool _allowsProcessOperations, _allowsExec, _allowsProtExec;


	bool _allowsSetTime, _allowsPS, _allowsVMInfo;


	bool _allowsChangingProcessRights, _allowsPF, _allowsAudio, _allowsBPF;



}

/*! Allows IO operations on previously allocated file descriptors. */
@property bool allowsStdIO;

/*! Allows read access to the file system. */
@property bool allowsReadingFiles;