]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
udf: Provide saner default for invalid uid / gid
authorJan Kara <jack@suse.cz>
Thu, 22 Feb 2018 09:39:52 +0000 (10:39 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit663141fd7e3197a47b1b8835908ec28a64235510
tree2962b48e7732b5992dfc1ac1e33cc05d1c7c91cc
parentc1ce08b70e687d279a0dc2bb22a0fffa4f0173ac
udf: Provide saner default for invalid uid / gid

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 116e5258e4115aca0c64ac0bf40ded3b353ed626 ]

Currently when UDF filesystem is recorded without uid / gid (ids are set
to -1), we will assign INVALID_[UG]ID to vfs inode unless user uses uid=
and gid= mount options. In such case filesystem could not be modified in
any way as VFS refuses to modify files with invalid ids (even by root).
This is confusing to users and not very useful default since such media
mode is generally used for removable media. Use overflow[ug]id instead
so that at least root can modify the filesystem.

Reported-by: Steve Kenton <skenton@ou.edu>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/udf/super.c