PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000960PacketFencecorepublic2010-04-16 14:072015-02-13 15:26
Reporterobilodeau 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000960: pfcmd changes the config files ownership when called at command line
DescriptionWhen I edit a switch using:
./pfcmd 'switchconfig edit 1.2.3.4 vlans="2,3"'

pfcmd changes switches.conf ownership from pf:pf to root:root.

Same behaviour with floating_network_devices.conf
Additional InformationIf this bug is fixed, re-enable the test in lib/pfcmd/checkup.pm to test file configuration ownership.
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships
has duplicate 0001345closed Saving from the GUI changes the permissions of the files on the filesystem 
has duplicate 0001407resolvedfgaudreault Switches.conf ownership changes to root after update from GUI. 
related to 0001544closed SoH configuration page fails to load because of config file permissions 
child of 0000963closedobilodeau Challenge the assumption that pfcmd must run as root setuid 

-  Notes
(0001529)
obilodeau (reporter)
2010-05-04 14:42

could be normal, right now bin/pfcmd is meant to be a setuid root command
(0001530)
obilodeau (reporter)
2010-05-04 14:52

important if we want to move out of a setuid pfcmd (setting child of bug 0000963).

Targeting for later.
(0002532)
obilodeau (reporter)
2012-01-11 09:33

Using ->ReWriteConfig instead of ->WriteConfig in pfcmd could've fixed it however I just read that both don't perform locking or transaction control so it would be worse if we read an incompletely written file then modify it and write it back.
(0002533)
obilodeau (reporter)
2012-01-11 09:34

removing target. only important to fix if we implement 0000963
(0002534)
obilodeau (reporter)
2012-01-11 09:38

Disabled verification of the configuration file since pfcmd is setuid and will probably stay that way a little while.

If this bug is fixed, re-enable the test in lib/pfcmd/checkup.pm to test file configuration ownership.
(0003693)
lmunro (administrator)
2015-02-13 15:26

Old issues.
Most are not relevant to PF 4 and up.

Let's reopen the ones that matter when we move to github.

- Issue History
Date Modified Username Field Change
2010-04-16 14:07 rbalzard New Issue
2010-05-04 14:42 obilodeau Note Added: 0001529
2010-05-04 14:50 obilodeau Relationship added child of 0000963
2010-05-04 14:52 obilodeau Note Added: 0001530
2010-05-04 14:52 obilodeau Category 1.9.x => 1.10.x
2010-05-04 14:52 obilodeau Target Version 1.9.0 =>
2010-11-19 14:28 obilodeau Category 1.10.x => 2.x
2010-11-19 14:50 obilodeau Category 2.x => core
2011-01-18 11:41 obilodeau Target Version => 2.1.0
2011-03-03 15:15 obilodeau Target Version 2.1.0 => +1
2011-03-03 15:18 obilodeau Target Version +1 => +2
2012-01-11 09:06 obilodeau Relationship added has duplicate 0001345
2012-01-11 09:15 obilodeau Status new => assigned
2012-01-11 09:15 obilodeau Assigned To => obilodeau
2012-01-11 09:33 obilodeau Note Added: 0002532
2012-01-11 09:34 obilodeau Note Added: 0002533
2012-01-11 09:34 obilodeau Reporter rbalzard => 94jaccha95107
2012-01-11 09:34 obilodeau Target Version +2 =>
2012-01-11 09:35 obilodeau Reporter 94jaccha95107 => obilodeau
2012-01-11 09:37 obilodeau Additional Information Updated
2012-01-11 09:38 obilodeau Note Added: 0002534
2012-04-11 22:17 obilodeau Relationship added duplicate of 0001407
2012-04-11 22:17 obilodeau Relationship deleted 0001407
2012-04-11 22:18 obilodeau Relationship added has duplicate 0001407
2012-09-11 09:39 obilodeau Relationship added related to 0001544
2012-10-19 14:01 fgaudreault Assigned To obilodeau =>
2012-10-19 14:01 fgaudreault Target Version => long-term
2015-02-13 15:26 lmunro Note Added: 0003693
2015-02-13 15:26 lmunro Status assigned => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker