Lines Matching +full:write +full:- +full:1

1 /*-
12 * 1. Redistributions of source code must retain the above copyright
32 * This is a joint test of both the read and write privileges with respect to
34 * not ACL semantics, and only privilege-related checks are performed.
67 if (expected_error != -1) in try_io()
68 warnx("%s(%s, %s): expected (%d, %d) got (-1, %d)", in try_io()
72 if (expected_error == -1) in try_io()
86 fpath_none_initialized = 1; in priv_vfs_readwrite_fowner_setup()
89 fpath_read_initialized = 1; in priv_vfs_readwrite_fowner_setup()
92 fpath_write_initialized = 1; in priv_vfs_readwrite_fowner_setup()
95 fpath_readwrite_initialized = 1; in priv_vfs_readwrite_fowner_setup()
105 fpath_none_initialized = 1; in priv_vfs_readwrite_fgroup_setup()
108 fpath_read_initialized = 1; in priv_vfs_readwrite_fgroup_setup()
111 fpath_write_initialized = 1; in priv_vfs_readwrite_fgroup_setup()
115 fpath_readwrite_initialized = 1; in priv_vfs_readwrite_fgroup_setup()
125 fpath_none_initialized = 1; in priv_vfs_readwrite_fother_setup()
128 fpath_read_initialized = 1; in priv_vfs_readwrite_fother_setup()
131 fpath_write_initialized = 1; in priv_vfs_readwrite_fother_setup()
134 fpath_readwrite_initialized = 1; in priv_vfs_readwrite_fother_setup()
143 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
145 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
147 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
152 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
154 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
156 try_io("priv_vfs_readwrite_fowner(write, O_RDONLY)", fpath_write, in priv_vfs_readwrite_fowner()
157 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
158 try_io("priv_vfs_readwrite_fowner(write, O_WRONLY)", fpath_write, in priv_vfs_readwrite_fowner()
160 try_io("priv_vfs_readwrite_fowner(write, O_RDWR)", fpath_write, in priv_vfs_readwrite_fowner()
161 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fowner()
163 try_io("priv_vfs_readwrite_fowner(write, O_RDONLY)", fpath_readwrite, in priv_vfs_readwrite_fowner()
165 try_io("priv_vfs_readwrite_fowner(write, O_WRONLY)", fpath_readwrite, in priv_vfs_readwrite_fowner()
167 try_io("priv_vfs_readwrite_fowner(write, O_RDWR)", fpath_readwrite, in priv_vfs_readwrite_fowner()
176 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
178 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
180 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
185 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
187 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
189 try_io("priv_vfs_readwrite_fgroup(write, O_RDONLY)", fpath_write, in priv_vfs_readwrite_fgroup()
190 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
191 try_io("priv_vfs_readwrite_fgroup(write, O_WRONLY)", fpath_write, in priv_vfs_readwrite_fgroup()
193 try_io("priv_vfs_readwrite_fgroup(write, O_RDWR)", fpath_write, in priv_vfs_readwrite_fgroup()
194 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fgroup()
196 try_io("priv_vfs_readwrite_fgroup(write, O_RDONLY)", fpath_readwrite, in priv_vfs_readwrite_fgroup()
198 try_io("priv_vfs_readwrite_fgroup(write, O_WRONLY)", fpath_readwrite, in priv_vfs_readwrite_fgroup()
200 try_io("priv_vfs_readwrite_fgroup(write, O_RDWR)", fpath_readwrite, in priv_vfs_readwrite_fgroup()
209 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
211 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
213 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
218 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
220 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
222 try_io("priv_vfs_readwrite_fother(write, O_RDONLY)", fpath_write, in priv_vfs_readwrite_fother()
223 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
224 try_io("priv_vfs_readwrite_fother(write, O_WRONLY)", fpath_write, in priv_vfs_readwrite_fother()
226 try_io("priv_vfs_readwrite_fother(write, O_RDWR)", fpath_write, in priv_vfs_readwrite_fother()
227 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); in priv_vfs_readwrite_fother()
229 try_io("priv_vfs_readwrite_fother(write, O_RDONLY)", fpath_readwrite, in priv_vfs_readwrite_fother()
231 try_io("priv_vfs_readwrite_fother(write, O_WRONLY)", fpath_readwrite, in priv_vfs_readwrite_fother()
233 try_io("priv_vfs_readwrite_fother(write, O_RDWR)", fpath_readwrite, in priv_vfs_readwrite_fother()