Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
08fccae2
Unverified
Commit
08fccae2
authored
Feb 07, 2018
by
Marcos Paulo de Souza
Committed by
Christian Brauner
Feb 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lsm: fix missing @ in function documentation
Signed-off-by:
Marcos Paulo de Souza
<
marcos.souza.org@gmail.com
>
parent
1be8cb04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
apparmor.c
src/lxc/lsm/apparmor.c
+2
-3
selinux.c
src/lxc/lsm/selinux.c
+2
-2
No files found.
src/lxc/lsm/apparmor.c
View file @
08fccae2
...
@@ -162,8 +162,8 @@ static bool aa_needs_transition(char *curlabel)
...
@@ -162,8 +162,8 @@ static bool aa_needs_transition(char *curlabel)
* 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 @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
*
*
* Returns 0 on success, < 0 on failure
* Returns 0 on success, < 0 on failure
...
@@ -230,7 +230,6 @@ static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf
...
@@ -230,7 +230,6 @@ static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf
INFO
(
"apparmor profile unchanged"
);
INFO
(
"apparmor profile unchanged"
);
return
0
;
return
0
;
}
}
tid
=
lxc_raw_gettid
();
tid
=
lxc_raw_gettid
();
label_fd
=
lsm_process_label_fd_get
(
tid
,
on_exec
);
label_fd
=
lsm_process_label_fd_get
(
tid
,
on_exec
);
if
(
label_fd
<
0
)
{
if
(
label_fd
<
0
)
{
...
...
src/lxc/lsm/selinux.c
View file @
08fccae2
...
@@ -65,8 +65,8 @@ static char *selinux_process_label_get(pid_t pid)
...
@@ -65,8 +65,8 @@ static char *selinux_process_label_get(pid_t pid)
* selinux_process_label_set: Set SELinux context of a process
* selinux_process_label_set: Set SELinux context of a process
*
*
* @label : label string
* @label : label string
* @conf : the container configuration to use @label is NULL
* @conf : the container configuration to use
if
@label is NULL
* @default : use the default context 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
* @on_exec : the new context will take effect on exec(2) not immediately
*
*
* Returns 0 on success, < 0 on failure
* Returns 0 on success, < 0 on failure
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment