Lines Matching refs:buf
45 char buf[NAME_MAX];
99 FOREACH_LINE(buf, policy,
105 if (isempty(truncate_nl(buf)))
110 if (sscanf(buf, "%ms %ms %ms %ms", &sbj, &obj, &acc1, &acc2) < 3) {
111 log_error_errno(errno, "Failed to parse rule '%s' in '%s', ignoring.", buf, entry->d_name);
115 if (write(isempty(acc2) ? load2_fd : change_fd, buf, strlen(buf)) < 0) {
119 buf, isempty(acc2) ? "/sys/fs/smackfs/load2" : "/sys/fs/smackfs/change-rule", entry->d_name);
131 char buf[NAME_MAX];
178 FOREACH_LINE(buf, policy,
182 if (isempty(truncate_nl(buf)))
185 if (write(cipso2_fd, buf, strlen(buf)) < 0) {
189 buf, entry->d_name);
202 char buf[NAME_MAX];
246 FOREACH_LINE(buf, policy,
249 if (!fputs(buf, dst)) {