Project

General

Profile

Download (26.7 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
7b229013 11/12/2012 08:41 PM Jim Pingle

Add button to switch between read/write and read-only on Diag > NanoBSD; Add setting to keep the media read/write at all times; Add indication of ro/rw status on Dashboard.

5ff00e73 10/09/2012 02:53 PM Jim Pingle

Make sure admin can always write the config

170cb2bc 10/09/2012 02:40 PM Jim Pingle

Add initial support for a privilege that denies write access to the config.
NOTE: This only prevents writing to config.xml - it does NOT prevent other changes/execution that do not involve writing to config.xml (e.g. applying settings, exec, killing states, etc)

05d5503b 08/14/2012 08:32 PM Ermal LUÇI

Remove extra curly to allow checking braces closure easily in vi[m]

cfbfd941 01/19/2012 07:33 PM Seth Mos

The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings

8059f9cb 11/22/2011 04:55 PM Jim Pingle

Add version to backup.cache in one more place

92420c0a 11/22/2011 04:55 PM Jim Pingle

Also show the config version in the backup history.

673966e4 11/21/2011 04:13 PM Jim Pingle

Setup the serial port in the factory reset as well, in case the default config in a rebrand has the serial console active.

e15e9c6b 08/17/2011 08:15 PM Ermal LUÇI

Ticket #1279. Decrease the refcount even though we're in booting phase. This helps the refcount to work as intended and help in making filesystem read only correctly on embedded platfroms. While here put some exceptions to refcount API and silent any related errors that might trigger. Also take not of the NOTE on the php manual that after a share memory is opened further references to it for size and access mode should be 0.

1623ed97 07/06/2011 12:41 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/priv.defs.inc

6fd8fde2 07/01/2011 08:50 PM Jim Pingle

Use empty() so we don't use it if it's defined but blank.

a9404381 07/01/2011 08:46 PM Jim Pingle

If available, also track the IP used by a user making a config change.

f0b17f3f 06/20/2011 11:50 AM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

2de8d745 06/16/2011 08:26 PM Jim Pingle

Do a more thorough check for platform on the ro call, or factory reset blows up.

a51493d1 04/15/2011 04:38 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/gwlb.inc

6177fd92 04/06/2011 05:14 PM Jim Pingle

Fixup text.

557300a7 04/06/2011 04:55 PM Jim Pingle

Actually re-parse the config if a valid config was not written. (Should help stop installs from blowing up on failed config upgrades). Save the bad config for inspection, and print a message to the console about what was done.

91589880 03/31/2011 04:34 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

cb0e3f8e 03/30/2011 08:58 PM Ermal LUÇI

Check for function existence before calling it.

bca0472d 03/29/2011 04:36 PM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/voucher.inc

63e18082 03/26/2011 09:21 PM Jim Pingle

Backing this out to see if it unbreaks NanoBSD upgrades with packages involved. Revert "Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279"

This reverts commit 548be1fd6697ab115cbb29d61bc5507744488094.

152ab4d0 03/25/2011 11:59 AM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/interfaces.inc
etc/inc/priv.defs.inc
etc/inc/shaper.inc
etc/inc/system.inc

54bdff75 03/25/2011 11:49 AM Vinicius Coque

Merge remote-tracking branch 'mainline/master' into inc

Conflicts:
etc/inc/auth.inc
etc/inc/config.lib.inc
etc/inc/filter.inc
etc/inc/pfsense-utils.inc
etc/inc/pkg-utils.inc
etc/inc/priv.defs.inc
etc/inc/services.inc...

548be1fd 03/22/2011 07:28 AM Erik Fonnesbeck

Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279

e58da189 03/15/2011 09:31 PM Ermal LUÇI

Add code to allow custom upgrade code to run after the pfSense upgrade code for the same version switching(Just the custom upgrade functions should have _custom at the end of their name.

e8567e89 03/07/2011 03:07 PM Jim Pingle

When doing conf_mount_ro/rw on NanoBSD, pass sync,noatime to mount to preserve the options we have already set in fstab. Ticket #1279 and Ticket #444

a8f9f07e 02/16/2011 06:53 PM Jim Pingle

Comment out the "config write on bootup" error. This is normal now with the package reinstall, and the known issues with it should be OK now. The error is just confusing people.

9d3d8d00 01/28/2011 07:32 PM Vinicius Coque

Merge branch 'master' into inc

Conflicts:
etc/inc/captiveportal.inc
etc/inc/config.console.inc
etc/inc/config.lib.inc
etc/inc/easyrule.inc
etc/inc/filter.inc
etc/inc/ipsec.inc
etc/inc/pkg-utils.inc
etc/inc/shaper.inc...

ba4f6e1d 01/18/2011 08:38 PM Jim Pingle

Better way to determine the username for config descrs

fa09d1b8 01/18/2011 08:38 PM Jim Pingle

Fix variable name reference

1c42331b 01/07/2011 10:39 PM Scott Ullrich

Stop spewing backup info on bootup

52f4c092 01/07/2011 10:28 PM Scott Ullrich

Add back booting check that existed prior to refcount code. We will improve upon this next week.

02e9880e 12/30/2010 07:45 PM Ermal LUÇI

Improve parse_config to not be recursive for no reason. This fixes some strange cases of config lock being left held and blocking GUI.

5af3a589 12/23/2010 08:07 PM Ermal LUÇI

Add some more safe belts and remove code that is commented from long time now. Reported on http://forum.pfsense.org/index.php/topic,28202.15.html

673e8095 12/22/2010 03:39 PM Scott Ullrich

nuke trailing carriage returns

77a842ef 12/18/2010 08:22 PM Scott Ullrich

No need to output 'Loading new configuration'. We already have a line written out telling the user what we are doing

c92ccac7 12/14/2010 11:56 AM Vinicius Coque

Merge remote branch 'mainline/master' into inc

Conflicts:
etc/inc/auth.inc
etc/inc/config.lib.inc
etc/inc/filter.inc
etc/inc/gwlb.inc
etc/inc/interfaces.inc
etc/inc/pfsense-utils.inc
etc/inc/pkg-utils.inc...

628d1548 11/30/2010 10:18 PM Ermal LUÇI

Do a fflush of file before closing and sync(2). Fix whitespace while here.

5ba5a8de 11/30/2010 09:48 PM Scott Ullrich

Use pfSense_sync()

00bc5bcc 11/30/2010 07:08 PM Scott Ullrich

Call sync after writing the file and before returning to continue processing.

b3405363 11/28/2010 10:30 PM Scott Ullrich

Use product name

990d7c03 11/26/2010 10:57 PM Erik Fonnesbeck

Check for pfsense root object name in config.xml as a fallback if the configured name is not found.

0f806eca 11/21/2010 05:23 PM Erik Fonnesbeck

Upon restoring a config, replacing whole sections, or editing config.xml in edit.php, prevent possible accidental lockout from DNS rebind and HTTP referrer checks by disabling them until reboot or the next time they pass, whichever comes sooner. Ticket #1027

9734b054 11/10/2010 05:00 PM Scott Ullrich

Remove trailing carriage return

4816e5ca 11/03/2010 02:53 PM Renato Botelho

Merge remote branch 'mainline/master' into inc

Conflicts:
etc/inc/auth.inc
etc/inc/config.lib.inc
etc/inc/priv.defs.inc
etc/inc/system.inc
etc/inc/upgrade_config.inc
etc/inc/vpn.inc

50cafcf3 10/19/2010 08:08 PM Ermal LUÇI

Correctly call die() in the places needed. Also remove unused global.

addc0439 10/01/2010 01:17 PM Renato Botelho

Fix quotes to use %N$X on gettext calls

47f12397 08/30/2010 11:36 PM Renato Botelho

Fix gettext calls with printf to permit change strings order

02226b92 08/23/2010 03:50 PM Renato Botelho

Merge remote branch 'mainline/master' into inc

Conflicts:
etc/inc/config.lib.inc

b83aad6e 08/22/2010 06:47 PM Scott Ullrich

Do not output duplicate done

4e038d31 08/16/2010 01:36 PM Carlos Eduardo Ramos

Implement gettext() calls on config.lib.inc

032c40c7 08/09/2010 11:29 PM Scott Ullrich

Move all console related configuration items to config.console.inc. This will mean that these items are not included when the webConfigurator is being used and only on bootup on the console.

2aa2b873 08/02/2010 08:40 AM Erik Fonnesbeck

Fix typo in interface name.

1295e769 07/28/2010 02:38 PM Scott Ullrich

Remove config.extra.xml, I will just merge the remote configuration areas right into config.xml

027b8057 07/28/2010 05:47 AM Erik Fonnesbeck

Comment out this line for now, since it was preventing config saving.

4e9a3392 07/28/2010 12:01 AM Scott Ullrich

If config.extra.xml exists parse and merge its contents into the array as long as we are not writing out the config.

d538b8fa 06/02/2010 05:20 PM Ermal LUÇI

Correct ifconfig syntax

59cfe65d 06/01/2010 05:35 PM Ermal LUÇI

Do not set max_execution time here.

cd25a2b2 05/19/2010 08:16 PM Jim Pingle

Refactor this function a little so it will also rebuild the cache if it does not already exist. Fixes missing config history after reboot on NanoBSD.

e490f995 05/18/2010 07:31 PM Ermal LUÇI

Do not bail out when we write a new config. Seems that we can write some special characters but might not be able to read them back but we still should be able to recover from this. Include globals.inc before calling any config.lib.inc functions.

b6c34bfc 05/13/2010 06:23 PM Ermal LUÇI

Ticket #544. Restore locking, seems w+ migh already lock the file sometimes. While there improve the locking to a read/write locking schema. Make the default locking a read only lock and if explicitly specified a write locking can be specified through LOCK_EX optional parameter to lock(). During config manipulation do the filesystem mounting in rw, if needed, before doing any locking to avoid possible problems and also to be consistent through out the code on the method used. Also update calls to config to lock exclusively where required.

4d52a9b9 05/12/2010 10:16 PM Jim Pingle

Tag all config write cases with the username.

362b8147 05/12/2010 07:07 PM Jim Pingle

Include username of person making the change in config change description, and in the config itself.

07f1ca1d 05/06/2010 10:43 AM Ermal LUÇI

Correct file_notice usage.

65125e11 03/27/2010 01:01 AM Ermal LUÇI

Add enable bits.

90680a1e 03/23/2010 10:21 PM Ermal LUÇI

backup_config() does not need to be wrapped with conf_mount_rw().

f2087c85 03/23/2010 10:17 PM Scott Ullrich

Unbreak ACB

573c9548 03/23/2010 02:56 PM Ermal LUÇI

The user owner of /dev/pf is root the group will be left to proxy to allow packages to become member of this group to modify firewall.

541989d5 03/19/2010 03:55 PM Ermal LUÇI

Ticket #434. Do not die when parsing config since we know how to recover. Only die during packages.

a45e27ba 03/17/2010 02:17 PM Ermal LUÇI

Ticket #417. Fix installation on embedded by using a refcount system for the mount command.

23f0ca50 03/08/2010 07:27 PM Ermal Luçi

Move check upper to suit the platforms not needing it better.

e296b183 03/08/2010 05:19 PM Ermal Luçi

Move call up to where it belongs.

06f61915 03/05/2010 04:28 PM Ermal Luçi

Propperly initialize variables so they function is as expected.

ddd42db3 03/03/2010 05:20 PM Ermal Luçi

Put safe_write_file to the include it belongs to.

16b96ea6 02/14/2010 08:30 PM Scott Ullrich

Add var/empty to excludes list

41bf8e8e 02/14/2010 07:58 PM Scott Ullrich

Use safe_write_file() like RELENG_1_2 does. Not sure how this diverged?!

e5977136 02/14/2010 05:53 PM Scott Ullrich

Write out config.xml.tmp first and then move into place after it is written trying to avoid half written files during panic or livelock situations

9d8d8a4c 02/02/2010 04:23 PM Renato Botelho

Align LAN and WAN interfaces print (just cosmetic)

0af381c2 01/16/2010 11:08 PM Scott Ullrich

Set variable instead of using comparison operator

42739c1c 12/28/2009 02:56 PM Ermal Luçi

Be consistent where we write and where we read the new config.

92cf9fcd 12/08/2009 04:01 AM Scott Ullrich

Show Loading new configuration to make bootup text unfiorm

b96cad97 12/03/2009 10:42 AM Seth Mos

Fix missing include for config upgrade 1.2 -> 2.0
Fix missing include for /etc/rc.reload_all

cace2dbb 11/28/2009 09:47 PM Scott Ullrich

Dedicate 6 characters

9c38bcea 11/28/2009 09:47 PM Scott Ullrich

Do not dedicate 16 characters to interface name

12df7edc 10/07/2009 10:15 PM Erik Augustsson

remove functional code from config.inc and place it in a library file config.lib.inc