Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 368281 - makedb cannot make db files outside of /var/db
makedb cannot make db files outside of /var/db
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nss_db (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
Depends On:
Blocks: 368501
  Show dependency treegraph
Reported: 2007-11-06 09:54 EST by Sean Dilda
Modified: 2013-04-15 04:53 EDT (History)
0 users

See Also:
Fixed In Version: RHBA-2007-1145
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-12-20 11:39:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:1145 normal SHIPPED_LIVE nss_db bug fix update 2007-12-20 11:39:32 EST

  None (edit)
Description Sean Dilda 2007-11-06 09:54:06 EST
Description of problem:

When attempting to create a db file outside of /var/db, makedb gives an error
about being unable to determine the context for the file.

It works fine if the file is in /var/db.  I believe this is related to the fix
for https://bugzilla.redhat.com/show_bug.cgi?id=136522

Version-Release number of selected component (if applicable):


How reproducible:

Every time

Steps to Reproduce:
1.  mkdir /tmp/foo
2.  Edit /var/db/Makefile so that the VAR_DB line points to /tmp/foo
3.  cd /var/db ; make
Actual results:

[root@svartalfheim db]# make
passwd... makedb: cannot determine file context for `/tmp/foo/passwd.db'
make: *** [/tmp/foo/passwd.db] Error 1

Expected results:

passwd... done.
group... done.
protocols... done.
rpc... done.
services... done.
shadow... done.

Additional info:
Comment 1 Nalin Dahyabhai 2007-11-06 11:43:22 EST
Should be a relatively simple change to the patch which adds labeling of files.
 Test cases will entail calling makedb directly using various destination
filenames, in permissive and enforcing mode, and making sure that it exits with
an error message only if the file is supposed to have a specific label, passing
that label to setfscreatecon() generated an error, and we're in enforcing mode.
Comment 6 errata-xmlrpc 2007-12-20 11:39:34 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.