Searched defs:lsm_label (Results 1 - 3 of 3) sorted by relevance
/lxc/src/lxc/ |
H A D | attach.h | 33 char *lsm_label; member in struct:lxc_proc_context_info
|
H A D | attach.c | 118 static int lsm_set_label_at(int lsm_labelfd, int on_exec, char *lsm_label) argument 139 command = malloc(strlen(lsm_label) + strlen("changeprofile ") + 1); 145 size = sprintf(command, "changeprofile %s", lsm_label); 157 if (write(lsm_labelfd, lsm_label, strlen(lsm_label) + 1) < 0) { 158 SYSERROR("Unable to set LSM label: %s.", lsm_label); 161 INFO("Set LSM label to: %s.", lsm_label); 224 info->lsm_label = lsm_process_label_get(pid); 235 free(ctx->lsm_label); 934 if ((options->namespaces & CLONE_NEWNS) && (options->attach_flags & LXC_ATTACH_LSM) && init_ctx->lsm_label) { [all...] |
/lxc/src/tests/ |
H A D | attach.c | 41 static const char *lsm_label = NULL; variable 55 lsm_label = "unconfined_u:unconfined_r:lxc_t:s0-s0:c0.c1023"; 60 lsm_label = "lxc-container-default-cgns"; 62 lsm_label = "lxc-container-default"; 75 ct->set_config_item(ct, lsm_config_key, lsm_label); 116 if (strcmp(lsm_label, result)) { 117 TSTERR("LSM label mismatch expected:%s got:%s", lsm_label, result); 171 if (strcmp(lsm_label, result)) { 172 TSTERR("LSM label mismatch expected:%s got:%s", lsm_label, result);
|
Completed in 255 milliseconds