]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lsm: fix missing @ in function documentation
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Wed, 7 Feb 2018 15:06:43 +0000 (13:06 -0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 8 Feb 2018 09:49:51 +0000 (10:49 +0100)
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
src/lxc/lsm/apparmor.c
src/lxc/lsm/selinux.c

index 85b70de8d6842c06cede424114d6fa07dbe82d19..ec41688472eaa1ccfd48b825ed45e39980a6b70e 100644 (file)
@@ -162,8 +162,8 @@ static bool aa_needs_transition(char *curlabel)
  * apparmor_process_label_set: Set AppArmor process profile
  *
  * @label   : the profile to set
- * @conf    : the container configuration to use @label is NULL
- * @default : use the default profile if label is NULL
+ * @conf    : the container configuration to use if @label is NULL
+ * @default : use the default profile if @label is NULL
  * @on_exec : this is ignored.  Apparmor profile will be changed immediately
  *
  * Returns 0 on success, < 0 on failure
@@ -230,7 +230,6 @@ static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf
                INFO("apparmor profile unchanged");
                return 0;
        }
-
        tid = lxc_raw_gettid();
        label_fd = lsm_process_label_fd_get(tid, on_exec);
        if (label_fd < 0) {
index 21833748b93885c0b370382e39a552a01a982c02..bd6541cfaec8c1766341099dd10f23e220ff4870 100644 (file)
@@ -65,8 +65,8 @@ static char *selinux_process_label_get(pid_t pid)
  * selinux_process_label_set: Set SELinux context of a process
  *
  * @label   : label string
- * @conf    : the container configuration to use @label is NULL
- * @default : use the default context if label is NULL
+ * @conf    : the container configuration to use if @label is NULL
+ * @default : use the default context if @label is NULL
  * @on_exec : the new context will take effect on exec(2) not immediately
  *
  * Returns 0 on success, < 0 on failure