"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lxc/lsm/apparmor.c" between
lxc-4.0.9.tar.gz and lxc-4.0.10.tar.gz

About: LXC are userspace tools for the Linux kernel containers that let users easily create and manage system or application containers.

apparmor.c  (lxc-4.0.9):apparmor.c  (lxc-4.0.10)
skipping to change at line 1185 skipping to change at line 1185
if (!command) if (!command)
return ret_errno(ENOMEM); return ret_errno(ENOMEM);
ret = snprintf(command, len, "changeprofile %s", label); ret = snprintf(command, len, "changeprofile %s", label);
if (ret < 0 || (size_t)ret >= len) if (ret < 0 || (size_t)ret >= len)
return -EFBIG; return -EFBIG;
ret = lxc_write_nointr(label_fd, command, len - 1); ret = lxc_write_nointr(label_fd, command, len - 1);
INFO("Set AppArmor label to \"%s\"", label); INFO("Set AppArmor label to \"%s\"", label);
return 0; return ret;
} }
/* /*
* apparmor_process_label_set: Set AppArmor process profile * apparmor_process_label_set: Set AppArmor process profile
* *
* @label : the profile to set * @label : the profile to set
* @conf : the container configuration to use if @label is NULL * @conf : the container configuration to use if @label is NULL
* @default : use the default profile if @label is NULL * @default : use the default profile if @label is NULL
* @on_exec : this is ignored. Apparmor profile will be changed immediately * @on_exec : this is ignored. Apparmor profile will be changed immediately
* *
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)