18 OF_ASSUME_NONNULL_BEGIN
22 @class OFArray OF_GENERIC(ObjectType);
24 @class OFPair OF_GENERIC(FirstType, SecondType);
39 unsigned int _allowsStdIO: 1;
40 unsigned int _allowsReadingFiles: 1;
41 unsigned int _allowsWritingFiles: 1;
42 unsigned int _allowsCreatingFiles: 1;
43 unsigned int _allowsCreatingSpecialFiles: 1;
44 unsigned int _allowsTemporaryFiles: 1;
45 unsigned int _allowsIPSockets: 1;
46 unsigned int _allowsMulticastSockets: 1;
47 unsigned int _allowsChangingFileAttributes: 1;
48 unsigned int _allowsFileOwnerChanges: 1;
49 unsigned int _allowsFileLocks: 1;
50 unsigned int _allowsUNIXSockets: 1;
51 unsigned int _allowsDNS: 1;
52 unsigned int _allowsUserDatabaseReading: 1;
53 unsigned int _allowsFileDescriptorSending: 1;
54 unsigned int _allowsFileDescriptorReceiving: 1;
55 unsigned int _allowsTape: 1;
56 unsigned int _allowsTTY: 1;
57 unsigned int _allowsProcessOperations: 1;
58 unsigned int _allowsExec: 1;
59 unsigned int _allowsProtExec: 1;
60 unsigned int _allowsSetTime: 1;
61 unsigned int _allowsPS: 1;
62 unsigned int _allowsVMInfo: 1;
63 unsigned int _allowsChangingProcessRights: 1;
64 unsigned int _allowsPF: 1;
65 unsigned int _allowsAudio: 1;
66 unsigned int _allowsBPF: 1;
67 unsigned int _allowsUnveil: 1;
68 unsigned int _returnsErrors: 1;
71 size_t _unveiledPathsIndex;
78 @property (nonatomic)
bool allowsStdIO;
83 @property (nonatomic)
bool allowsReadingFiles;
88 @property (nonatomic)
bool allowsWritingFiles;
93 @property (nonatomic)
bool allowsCreatingFiles;
98 @property (nonatomic)
bool allowsCreatingSpecialFiles;
103 @property (nonatomic)
bool allowsTemporaryFiles;
108 @property (nonatomic)
bool allowsIPSockets;
113 @property (nonatomic)
bool allowsMulticastSockets;
118 @property (nonatomic)
bool allowsChangingFileAttributes;
123 @property (nonatomic)
bool allowsFileOwnerChanges;
128 @property (nonatomic)
bool allowsFileLocks;
133 @property (nonatomic)
bool allowsUNIXSockets;
138 @property (nonatomic)
bool allowsDNS;
143 @property (nonatomic)
bool allowsUserDatabaseReading;
148 @property (nonatomic)
bool allowsFileDescriptorSending;
153 @property (nonatomic)
bool allowsFileDescriptorReceiving;
158 @property (nonatomic)
bool allowsTape;
163 @property (nonatomic)
bool allowsTTY;
168 @property (nonatomic)
bool allowsProcessOperations;
173 @property (nonatomic)
bool allowsExec;
178 @property (nonatomic)
bool allowsProtExec;
183 @property (nonatomic)
bool allowsSetTime;
188 @property (nonatomic)
bool allowsPS;
193 @property (nonatomic)
bool allowsVMInfo;
198 @property (nonatomic)
bool allowsChangingProcessRights;
203 @property (nonatomic)
bool allowsPF;
208 @property (nonatomic)
bool allowsAudio;
213 @property (nonatomic)
bool allowsBPF;
218 @property (nonatomic)
bool allowsUnveil;
223 @property (nonatomic)
bool returnsErrors;
225 #ifdef OF_HAVE_PLEDGE
231 @property (readonly, nonatomic)
OFString *pledgeString;
237 @property (readonly, nonatomic)
243 + (instancetype)sandbox;
266 OF_ASSUME_NONNULL_END
OFPair * of_sandbox_unveil_path_t
An OFPair for a path to unveil, with the first string being the path and the second the permissions.
Definition: OFSandbox.h:24
An abstract class for storing objects in an array.
Definition: OFArray.h:92
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:44
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class for storing a pair of two objects.
Definition: OFPair.h:36
A class which describes a sandbox for the application.
Definition: OFSandbox.h:39
A class for handling strings.
Definition: OFString.h:132
A protocol for the creation of copies.
Definition: OFObject.h:1187