Lines Matching +full:s +full:- +full:mode
1 /*-
50 * rule<->string routines to confirm they work approximately as desired.
79 "subject uid root object uid root mode n",
80 "subject uid root object uid daemon mode n",
81 "subject uid daemon object uid root mode n",
82 "subject uid daemon object uid daemon mode n",
83 /* Variations on mode. */
84 "subject uid root object uid root mode a",
85 "subject uid root object uid root mode r",
86 "subject uid root object uid root mode s",
87 "subject uid root object uid root mode w",
88 "subject uid root object uid root mode x",
89 "subject uid root object uid root mode arswx",
91 "subject gid wheel object gid wheel mode n",
92 "subject gid wheel object gid daemon mode n",
93 "subject gid daemon object gid wheel mode n",
94 "subject gid daemon object gid daemon mode n",
96 "subject uid bin gid daemon object uid operator gid wheel mode n",
98 "subject not uid operator object uid bin mode n",
99 "subject uid bin object not uid operator mode n",
100 "subject not uid daemon object not uid operator mode n",
102 "subject uid root:operator object gid wheel:bin mode n",
104 "subject jailid 1 object uid root mode n",
106 "subject uid root object filesys / mode n",
107 "subject uid root object filesys /dev mode n",
108 /* S/UGID */
109 "subject not uid root object sgid mode n",
110 "subject not uid root object sgid mode n",
112 "subject not uid root:operator object not uid_of_subject mode n",
113 "subject not gid wheel:bin object not gid_of_subject mode n",
115 "subject uid root object type a mode a",
116 "subject uid root object type r mode a",
117 "subject uid root object type d mode a",
118 "subject uid root object type b mode a",
119 "subject uid root object type c mode a",
120 "subject uid root object type l mode a",
121 "subject uid root object type s mode a",
122 "subject uid root object type rbc mode a",
123 "subject uid root object type dls mode a",
125 "subject object mode a",
127 "subject ! uid root object mode n",
128 "subject ! gid wheel object mode n",
129 "subject ! jailid 2 object mode n",
130 "subject object ! uid root mode n",
131 "subject object ! gid wheel mode n",
132 "subject object ! filesys / mode n",
133 "subject object ! suid mode n",
134 "subject object ! sgid mode n",
135 "subject object ! uid_of_subject mode n",
136 "subject object ! gid_of_subject mode n",
137 "subject object ! type d mode n",
141 "mode rsx",
155 printf("not ok %d # test_libugidfw_strings: getpwnam(%s) " in test_libugidfw_strings()
156 "failed: %s\n", test_num, test_users[i], strerror(errno)); in test_libugidfw_strings()
163 printf("not ok %d # test_libugidfw_strings: getgrnam(%s) " in test_libugidfw_strings()
164 "failed: %s\n", test_num, test_groups[i], strerror(errno)); in test_libugidfw_strings()
172 if (error == -1) in test_libugidfw_strings()
173 printf("not ok %d # bsde_parse_rule_string: '%s' (%zu) " in test_libugidfw_strings()
174 "failed: %s\n", test_num, test_strings[i], i, errorstr); in test_libugidfw_strings()
181 printf("not ok %d # bsde_rule_to_string: rule for '%s' " in test_libugidfw_strings()
188 printf("not ok %d # test_libugidfw: '%s' in, '%s' " in test_libugidfw_strings()
204 /* Print an error if a non-root user attemps to run the tests. */ in main()
211 case -1: in main()
212 printf("1..0 # SKIP mac_is_present failed: %s\n", in main()
229 * Some simple up-front checks to see if we're able to query the in main()
235 if (count == -1) in main()
236 printf("not ok %d # bsde_get_rule_count: %s\n", test_num, in main()
244 if (slots == -1) in main()
245 printf("not ok %d # bsde_get_rule_slots: %s\n", test_num, in main()