perl-Config-Secure - Perl extension for scripts run with PSC

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Config-Secure
Package version 0.0.1
Package release alt1
Package architecture noarch
Package type rpm
Installed size 8.45 KB
Download size 8.45 KB
Official Mirror
Config::Secure is a module for reading config data passed in by.Perl Secure Conf (PSC) which can be found at
It is really not useful unless your script is called through PSC.
PSC is a setuid C program which opens a protected conf file, drops
its permissions, and then runs an unprotected perl script.
Theoretically that perl script uses this module, and this module
then opens the filehandle and parses the data to return it to
you in a nice hash (or hashref). If the conf file is writeable
by the setuid user, you may also use write_conf to write back to
the conf file. For more info on PSC, see its documentation.
This module expects conf files to be in the form of
key: value
lines beginning with a # are comment lines. I have done my best
to maintain conf file comments on writeback. If you want to have
comments and write to your conf file, use the form of
foo: bar
that way your comments will stay associated with their proper
You may have more than one value for a certain key, if you do this
the value in the hash will automagically change from a scalar value
to a hashref containing all the values in the order they were defined
in the file. It is up to you to catch this if you put in multiple
values for one key.
If you do not wish to use Config::Secure's get and write functions
you are free to write your own, though I would suggest you still
use Config::Secure to initialize your program. If you wish to do
this I have provided the get_fh method. Calling get_fh returns you
the filehandle to the file, and a flag as to whether or not you
may write to it. Use it as follows:
my($fh,$writeable) = Config::Secure::get_fh();
You may then do whatever you want with the file.
Config::Secure does a neat little trick for you, it sets
$0 to contain the path to the psc link that was called
to invoke the script. This makes it easier to replace any
existing scripts that may rely on $0. Keep in mind, though,
that FindBin will point to the actual script, not the same
as the PSC link.


Package Version Architecture Repository
perl-Config-Secure - - -


Name Value
/usr/share/perl5 -
perl( -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Config/ = 0.0.001
perl-Config-Secure = 0.0.1-alt1


Type URL
Binary Package perl-Config-Secure-0.0.1-alt1.noarch.rpm
Source Package perl-Config-Secure-0.0.1-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Config-Secure rpm package:
    # sudo apt-get install perl-Config-Secure



See Also

Package Description
perl-Config-Setting-0.04-alt1.noarch.rpm Perl extension for configuration files
perl-Config-Settings-0.02-alt1.noarch.rpm Parsing pleasant configuration files
perl-Config-Simple-Conf-2.003-alt1.noarch.rpm A fast and lightweight configuration file handler
perl-Config-Simple-Extended-0.16-alt1.noarch.rpm Extend Config::Simple w/ Configuration Inheritance, chosen by URL
perl-Config-Simple-Inherit-0.04-alt1.noarch.rpm Inherit values from, overwrite a base configuration
perl-Config-Singleton-0.005-alt1.noarch.rpm one place for your app's configuration
perl-Config-Source-0.08-alt1.noarch.rpm manage a configuration from multiple sources
perl-Config-Station-0.002001-alt1.noarch.rpm Load configs from files and the environment
perl-Config-Strict-0.07-alt1.noarch.rpm Add strict name- and type-checking to configuration data
perl-Config-TT2-0.53-alt1.noarch.rpm Reading configuration files with the Template-Toolkit parser
perl-Config-Terse-0.01-alt1.noarch.rpm delimited key and value:
perl-Config-Tiny-Ordered-1.02-alt1.noarch.rpm Read/Write ordered .ini style files with as little code as possible
perl-Config-Tiny-Singleton-0.02-alt1.noarch.rpm singleton-pattern implementation for Config::Tiny
perl-Config-TinyDNS-1-alt1.noarch.rpm Manipulate tinydns' data file
perl-Config-TinyDNS-scripts-1-alt1.noarch.rpm Config-TinyDNS scripts