Lines Matching defs:marks
12 * Check that fanotify groups and marks limits are enforced correctly.
64 /* 0: unlimited marks in userns */
83 "Local marks limit in unprivileged user ns",
89 /* Verify that groups and marks cannot be created beyond limit */
90 static void verify_user_limits(unsigned int init_flags, int groups, int marks)
111 "Created %d groups and marks - "
113 } else if (!ret && i > marks) {
115 "Created %d groups and marks - "
116 "marks limit (%d) exceeded", i, marks);
117 } else if (ret < 0 && errno == ENOSPC && marks < groups) {
120 * fanotify marks limit is reached.
123 "Created %d marks - "
124 "below marks limit (%d)", i, marks);
171 int marks = max_marks;
188 marks = groups = tc->max_user_groups;
191 if (tc->max_user_marks && tc->max_user_marks < marks) {
192 /* Further limit user ns marks */
193 marks = tc->max_user_marks;
194 SAFE_FILE_PRINTF(USERNS_MAX_MARKS, "%d", marks);
197 verify_user_limits(tc->init_flags, groups, marks);