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
c03d7a78
Unverified
Commit
c03d7a78
authored
May 29, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: make root idmap structs const
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
05ea6978
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
conf.c
src/lxc/conf.c
+3
-2
conf.h
src/lxc/conf.h
+2
-2
No files found.
src/lxc/conf.c
View file @
c03d7a78
...
...
@@ -1499,7 +1499,7 @@ static int setup_pivot_root(const struct lxc_rootfs *rootfs)
return
0
;
}
static
struct
id_map
*
find_mapped_nsid_entry
(
struct
lxc_conf
*
conf
,
unsigned
id
,
static
const
struct
id_map
*
find_mapped_nsid_entry
(
struct
lxc_conf
*
conf
,
unsigned
id
,
enum
idtype
idtype
)
{
struct
lxc_list
*
it
;
...
...
@@ -3965,7 +3965,8 @@ static int run_userns_fn(void *data)
static
struct
id_map
*
mapped_nsid_add
(
struct
lxc_conf
*
conf
,
unsigned
id
,
enum
idtype
idtype
)
{
struct
id_map
*
map
,
*
retmap
;
const
struct
id_map
*
map
;
struct
id_map
*
retmap
;
map
=
find_mapped_nsid_entry
(
conf
,
id
,
idtype
);
if
(
!
map
)
...
...
src/lxc/conf.h
View file @
c03d7a78
...
...
@@ -233,13 +233,13 @@ struct lxc_conf {
* Pointer to the idmap entry for the container's root uid in
* the id_map list. Do not free!
*/
struct
id_map
*
root_nsuid_map
;
const
struct
id_map
*
root_nsuid_map
;
/*
* Pointer to the idmap entry for the container's root gid in
* the id_map list. Do not free!
*/
struct
id_map
*
root_nsgid_map
;
const
struct
id_map
*
root_nsgid_map
;
};
struct
lxc_list
network
;
...
...
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