summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/POSIX/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'maint' into masterSol Jerome2014-04-161-44/+72
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/appendix/guides/import-existing-ssh-keys.txt misc/bcfg2.spec src/lib/Bcfg2/Client/Tools/VCS.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Encryption.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/Storage/DjangoORM.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/__init__.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-reports src/sbin/bcfg2-yum-helper testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestAugeas.py
| * POSIX: fixed test to only apply ACLs to non-symlinksv1.3.4Chris St. Pierre2014-02-251-1/+1
| |
| * Revert "POSIX: fixed test to only apply ACLs to non-symlinks"Chris St. Pierre2014-02-251-2/+2
| | | | | | | | | | | | Massive typo. This reverts commit c51850b13f54d6f46e6c671e5ee1d3f0cacef727.
| * POSIX: fixed test to only apply ACLs to non-symlinksChris St. Pierre2014-02-251-2/+2
| |
| * POSIX: Fix verification of symlinksChris St. Pierre2014-02-211-3/+3
| | | | | | | | | | | | | | | | | | | | * Stat the link itself, not its target * Get SELinux context from the link, not the target * Don't get ACLs at all; symlinks don't have their own ACLs The first issue listed wasn't actually a bug, because none of the information queried from the target by the stat call was actually used in verification, but it's been fixed for completeness.
| * Don't strip other entries from default ACL, these are defined by mode number.Richard Connon2014-02-101-3/+1
| |
| * docstring for new sub-methodRichard Connon2014-02-041-0/+2
| |
| * Except _verify_acls from pylint branches checkRichard Connon2014-02-041-1/+1
| |
| * Removed redundant condition for empty default ACLRichard Connon2014-02-041-8/+7
| |
| * Fixed continue not in a loop error in previousRichard Connon2014-02-041-1/+1
| |
| * fix for "Too many branches" in _verify_aclsRichard Connon2014-02-041-20/+23
| |
| * Minor changes to default ACL codeRichard Connon2014-02-041-5/+4
| |
| * Support ACLs without a specific user/group for default owner/owning-group ↵Richard Connon2014-02-041-28/+52
| | | | | | | | ACLs on directories
| * POSIX: Properly stringify ACLs with no user/group specifiedChris St. Pierre2014-01-161-1/+4
| | | | | | | | | | | | | | This is just a workaround to avoid a traceback; the real fix will involve making the POSIX tool properly handle ACLs with no user/group given, which refer to the current user/group of the file they apply to.
* | Merge branch 'maint'Chris St. Pierre2013-09-161-0/+5
|\| | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgPublicKeyCreator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgPrivateKeyCreator.py
| * Remove all ACLs (including mask) from entries with no ACLs listedChris St. Pierre2013-09-121-0/+5
| | | | | | | | | | | | When installing an entry with no ACLs specified, but with ACLs on the file as it exists on the filesystem, the ACL mask was preserved, even as the ACLs are deleted.
* | Pylint/PEP8 fixesSol Jerome2013-09-061-2/+3
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'maint'Sol Jerome2013-09-011-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/SSLServer.py tools/README
| * SELinux: Update the matchpathcon function to use the file's modeJonathan Billings2013-08-221-1/+2
| | | | | | | | | | | | | | | | If you don't supply a mode to the selinux.matchpathcon() function, it fails to properly look up the context in some circumstances related to context patterns in the SELinux policy. This change looks up the mode and supplies it to the function. (cherry picked from commit 20a2c9a8fb6c6ecbed259b5deccb01c01bf3304f)
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-17/+17
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
| * Options: migrated client drivers to new parserChris St. Pierre2013-06-271-17/+17
| |
* | POSIX: Ignore permissions error on auto-created dirsMichael Fenn2013-07-241-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If the POSIX client tool is run as a non-root user, it is very likely that the _set_perms() call in _makedirs() will fail because it cannot set the owner of the newly-created directories. This causes _makedirs() to return False, which in turn causes POSIXFile.install() to bail out early. Applying the reasoning in <https://github.com/Bcfg2/bcfg2/pull/108> the freebie directories created by _makedirs should have mode and ownership done on a best-effort basis. If a user needs parent directories to have a specific ownership and mode, then they should specify that directory in their configuration.
* | New approach, just create nwe directories with mode 0755 regardlessMichael Fenn2013-07-011-9/+3
|/
* POSIX: SELinux context fixes for Path entriesChris St. Pierre2013-04-111-5/+11
| | | | | | | * Fixed Path entries with secontext='__default__' where no fcontext rule applied to the path. * Permitted setting secontext='' when no SELinux context should be applied to a Path entry
* testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-261-2/+2
|
* POSIX: fixed infinite stat() loop with misnamed Path entryChris St. Pierre2013-03-181-1/+1
|
* fixed conversion to octal in py3kChris St. Pierre2012-12-041-5/+7
|
* POSIX: fixed removal of symlinked directoriesChris St. Pierre2012-11-161-5/+13
|
* POSIX: fix detection of ACLs on entry without pylibacl installedChris St. Pierre2012-11-071-3/+2
|
* POSIX: ensure that automatically-created parent dirs have appropriate +x permsChris St. Pierre2012-11-071-2/+18
|
* handle malformed ACL tags more elegantlyChris St. Pierre2012-10-191-1/+7
|
* POSIX: only enable selinux if its enabled on the hostTim Laszlo2012-10-171-1/+1
|
* POSIX: Switch from perms to modeSol Jerome2012-10-151-20/+20
| | | | | | | | Bcfg2 has traditionally used the 'perms' attribute to specify the file mode for POSIX entries. Switching to a 'mode' attribute will allow us to be more consistent with other tools as well as POSIX itself. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* consistently list ACLs on Path entriesChris St. Pierre2012-10-021-3/+5
|
* if an entry has no acls and its filesystem is mounted noacl, that's not an errorChris St. Pierre2012-09-281-2/+7
|
* misc. minor bug fixesChris St. Pierre2012-09-251-3/+8
|
* fixed tests for pylint changesChris St. Pierre2012-09-251-0/+2
|
* expanded pylint testsChris St. Pierre2012-09-251-96/+176
|
* run pylint for errors on almost everything, full runs on some selected stuffChris St. Pierre2012-09-251-1/+1
|
* ensure that ACL entries can be parsed without error even without pylibaclChris St. Pierre2012-08-201-1/+1
|
* fix for missing ACL libsChris St. Pierre2012-08-161-4/+6
|
* fix _verify_metadata() when selinux libs not installedChris St. Pierre2012-08-161-1/+2
|
* POSIX:Chris St. Pierre2012-08-151-0/+639
refactored POSIX tool into multiple files to make it more manageable Added unit tests for POSIX tool and sub-tools fixed ACL handling for filesystems mounted noacl