[Bug 659915] New: createrepo clears group write umask bit when creating/updating repodata subdirectory
https://bugzilla.novell.com/show_bug.cgi?id=659915 https://bugzilla.novell.com/show_bug.cgi?id=659915#c0 Summary: createrepo clears group write umask bit when creating/updating repodata subdirectory Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: PowerPC-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: archie@dellroad.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 The 'createrepo' command is used to create or update an rpm-md type RPM repository. When this command is run, the 'repodata' directory is created/updated. The problem is that 'createrepo' clears the group write permission bit on this directory, even if the user's umask is e.g. 002. This causes problems in our setup because we are setup to allow UNIX users in the 'repo' group to publish to the repository (and yes they all have umask 002 during this operation). But what happens is once a user does this, no other user can publish because 'repodata' is unwritable to them. Here's a simple script to reproduce this problem: #!/bin/sh umask 002 mkdir -p repo/i586 wget -q -P repo/i586 http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/cpp-4.5-4.... createrepo repo ls -la repo Run it once or more than once.. either way, you'll see output like this: drwxrwxr-x 4 archie users 4096 Dec 16 09:03 . drwxrwxr-x 3 archie users 4096 Dec 16 09:03 .. drwxrwxr-x 2 archie users 4096 Dec 16 09:03 i586 drwxr-xr-x 2 archie users 4096 Dec 16 09:03 repodata Notice the permissions on 'repodata' are 'drwxr-xr-x' when they should be 'drwxrwxr-x'. Reproducible: Always Steps to Reproduce: #!/bin/sh umask 002 mkdir -p repo/i586 wget -q -P repo/i586 http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/cpp-4.5-4.... createrepo repo ls -la repo Actual Results: drwxrwxr-x 4 archie users 4096 Dec 16 09:03 . drwxrwxr-x 3 archie users 4096 Dec 16 09:03 .. drwxrwxr-x 2 archie users 4096 Dec 16 09:03 i586 drwxr-xr-x 2 archie users 4096 Dec 16 09:03 repodata Expected Results: drwxrwxr-x 4 archie users 4096 Dec 16 09:03 . drwxrwxr-x 3 archie users 4096 Dec 16 09:03 .. drwxrwxr-x 2 archie users 4096 Dec 16 09:03 i586 drwxrwxr-x 2 archie users 4096 Dec 16 09:03 repodata -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659915
https://bugzilla.novell.com/show_bug.cgi?id=659915#c
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=659915
https://bugzilla.novell.com/show_bug.cgi?id=659915#c1
--- Comment #1 from Archie Cobbs
https://bugzilla.novell.com/show_bug.cgi?id=659915
https://bugzilla.novell.com/show_bug.cgi?id=659915#c
Matt Barringer
https://bugzilla.novell.com/show_bug.cgi?id=659915
https://bugzilla.novell.com/show_bug.cgi?id=659915#c2
Matt Barringer
participants (1)
-
bugzilla_noreply@novell.com