Lines Matching refs:label
48 int mac_smack_apply(const char *path, const char *label) {
57 if (label)
58 r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0);
68 int mac_smack_apply_fd(int fd, const char *label) {
77 if (label)
78 r = fsetxattr(fd, "security.SMACK64", label, strlen(label), 0);
88 int mac_smack_apply_ip_out_fd(int fd, const char *label) {
97 if (label)
98 r = fsetxattr(fd, "security.SMACK64IPOUT", label, strlen(label), 0);
108 int mac_smack_apply_ip_in_fd(int fd, const char *label) {
117 if (label)
118 r = fsetxattr(fd, "security.SMACK64IPIN", label, strlen(label), 0);
128 int mac_smack_apply_pid(pid_t pid, const char *label) {
135 assert(label);
142 r = write_string_file(p, label);
171 const char *label;
180 label = SMACK_STAR_LABEL;
182 label = SMACK_FLOOR_LABEL;
184 label = SMACK_STAR_LABEL;
188 r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0);
203 r = log_debug_errno(errno, "Unable to fix SMACK label of %s: %m", path);