Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ba64e2b9
Commit
ba64e2b9
authored
Feb 10, 2012
by
Eric W. Biederman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userns: Convert isofs to use kuid/kgid where appropriate
Signed-off-by:
Eric W. Biederman
<
ebiederm@xmission.com
>
parent
16525e3f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
fs/isofs/inode.c
fs/isofs/inode.c
+11
-6
fs/isofs/isofs.h
fs/isofs/isofs.h
+2
-2
fs/isofs/rock.c
fs/isofs/rock.c
+2
-2
init/Kconfig
init/Kconfig
+0
-1
No files found.
fs/isofs/inode.c
View file @
ba64e2b9
...
...
@@ -21,6 +21,7 @@
#include <linux/cdrom.h>
#include <linux/parser.h>
#include <linux/mpage.h>
#include <linux/user_namespace.h>
#include "isofs.h"
#include "zisofs.h"
...
...
@@ -171,8 +172,8 @@ struct iso9660_options{
unsigned
int
blocksize
;
umode_t
fmode
;
umode_t
dmode
;
gid_t
gid
;
uid_t
uid
;
k
gid_t
gid
;
k
uid_t
uid
;
char
*
iocharset
;
/* LVE */
s32
session
;
...
...
@@ -383,8 +384,8 @@ static int parse_options(char *options, struct iso9660_options *popt)
popt
->
fmode
=
popt
->
dmode
=
ISOFS_INVALID_MODE
;
popt
->
uid_set
=
0
;
popt
->
gid_set
=
0
;
popt
->
gid
=
0
;
popt
->
uid
=
0
;
popt
->
gid
=
GLOBAL_ROOT_GID
;
popt
->
uid
=
GLOBAL_ROOT_UID
;
popt
->
iocharset
=
NULL
;
popt
->
utf8
=
0
;
popt
->
overriderockperm
=
0
;
...
...
@@ -460,13 +461,17 @@ static int parse_options(char *options, struct iso9660_options *popt)
case
Opt_uid
:
if
(
match_int
(
&
args
[
0
],
&
option
))
return
0
;
popt
->
uid
=
option
;
popt
->
uid
=
make_kuid
(
current_user_ns
(),
option
);
if
(
!
uid_valid
(
popt
->
uid
))
return
0
;
popt
->
uid_set
=
1
;
break
;
case
Opt_gid
:
if
(
match_int
(
&
args
[
0
],
&
option
))
return
0
;
popt
->
gid
=
option
;
popt
->
gid
=
make_kgid
(
current_user_ns
(),
option
);
if
(
!
gid_valid
(
popt
->
gid
))
return
0
;
popt
->
gid_set
=
1
;
break
;
case
Opt_mode
:
...
...
fs/isofs/isofs.h
View file @
ba64e2b9
...
...
@@ -52,8 +52,8 @@ struct isofs_sb_info {
umode_t
s_fmode
;
umode_t
s_dmode
;
gid_t
s_gid
;
uid_t
s_uid
;
k
gid_t
s_gid
;
k
uid_t
s_uid
;
struct
nls_table
*
s_nls_iocharset
;
/* Native language support table */
};
...
...
fs/isofs/rock.c
View file @
ba64e2b9
...
...
@@ -364,8 +364,8 @@ parse_rock_ridge_inode_internal(struct iso_directory_record *de,
case
SIG
(
'P'
,
'X'
):
inode
->
i_mode
=
isonum_733
(
rr
->
u
.
PX
.
mode
);
set_nlink
(
inode
,
isonum_733
(
rr
->
u
.
PX
.
n_links
));
i
node
->
i_uid
=
isonum_733
(
rr
->
u
.
PX
.
uid
);
i
node
->
i_gid
=
isonum_733
(
rr
->
u
.
PX
.
gid
);
i
_uid_write
(
inode
,
isonum_733
(
rr
->
u
.
PX
.
uid
)
);
i
_gid_write
(
inode
,
isonum_733
(
rr
->
u
.
PX
.
gid
)
);
break
;
case
SIG
(
'P'
,
'N'
):
{
...
...
init/Kconfig
View file @
ba64e2b9
...
...
@@ -944,7 +944,6 @@ config UIDGID_CONVERTED
depends on FUSE_FS = n
depends on GFS2_FS = n
depends on HPFS_FS = n
depends on ISO9660_FS = n
depends on JFFS2_FS = n
depends on JFS_FS = n
depends on LOGFS = n
...
...
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