summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.c
Commit message (Collapse)AuthorAgeFilesLines
* Make DEBUG macro invocations variadicNikolai Kondrashov2014-05-021-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | Use a script to update DEBUG macro invocations to use it as a variadic macro, supplying format string and its arguments directly, instead of wrapping them in parens. This script was used to update the code (identical to commit a3c8390d19593b1e5277d95bfb4ab206d4785150): grep -rwl --include '*.[hc]' DEBUG . | while read f; do mv "$f"{,.orig} perl -e \ 'use strict; use File::Slurp; my $text=read_file(\*STDIN); $text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs; print $text;' < "$f.orig" > "$f" rm "$f.orig" done Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* sudo: memset tm when converting time attributesPavel Březina2014-01-291-0/+2
| | | | | | | | | | strptime() which is used to parse LDAP time value does not initialize all fields of tm structure (especially tm_isdst). This results in random behavior - when the tm is converted into timestamp via mktime(), the result depends on current value of tm_isdst. Resolves: https://fedorahosted.org/sssd/ticket/2213
* SYSDB: Fix incorrect DEBUG messageStephen Gallagher2013-10-041-1/+1
| | | | | | | | A bad comparison resulted in the sysdb_sudo_check_time() function always printing a debug message saying that the time matched. Resolves: Coverity Issue #12031
* sudo: improve time restrictions debug messagesPavel Březina2013-10-011-0/+8
|
* sudo: allow specifying only one time restrictionPavel Březina2013-10-011-47/+34
| | | | https://fedorahosted.org/sssd/ticket/2100
* sudo responder: change num_rules type from size_t to uint32_tPavel Březina2013-01-221-3/+3
| | | | | | | | https://fedorahosted.org/sssd/ticket/1779 2^32 should be enough to store sudo rules. size_t type was causing troubles on big endian architectures, because it wasn't used correctly in combination with D-Bus.
* Add domain arguments to sysdb sudo functionsSimo Sorce2013-01-151-18/+27
|
* Add domain to sysdb_delete_customSimo Sorce2013-01-151-1/+1
|
* Add domain argument to sysdb_search_custom()Simo Sorce2013-01-151-1/+1
| | | | Also changes sysdb_search_custom_by_name()
* Add domain argument to sysdb_store_custom()Simo Sorce2013-01-151-1/+1
|
* Add domain to sysdb_search_group_by_gid()Simo Sorce2013-01-151-1/+1
| | | | Also remove unused sysdb_search_domgroup_by_gid()
* Add domain to sysdb_search_user_by_name()Simo Sorce2013-01-151-2/+2
| | | | Also remove unused sysdb_search_domuser_by_name()
* Make sysdb_custom_subtree_dn() require a domain.Simo Sorce2013-01-151-3/+5
|
* Fix a 'shadows a global declaration' warningSumit Bose2012-12-191-2/+2
|
* sudo: support generalized time formatPavel Březina2012-12-131-11/+34
| | | | | | | https://fedorahosted.org/sssd/ticket/1712 The timestamp doesn't have to be in the form yyyymmddHHMMSSZ any more. It can be in any form of generalized time format.
* sudo: include primary group in user group listPavel Březina2012-12-131-1/+41
| | | | https://fedorahosted.org/sssd/ticket/1677
* sysdb_get_sudo_user_info() initialize attrs on declarationPavel Březina2012-12-131-4/+3
|
* SYSDB: Remove unnecessary domain parameter from several sysdb callsJakub Hrozek2012-09-241-2/+1
| | | | | The domain can be read from the sysdb object. Removing the domain string makes the API more self-contained.
* Unify usage of sysdb transactions (part 2).Michal Zidek2012-09-041-2/+5
|
* Remove SYSDB_SUDO_CACHE_OC from attribute listsPavel Březina2012-08-071-1/+0
| | | | It is not an attribute.
* Rename SYSDB_SUDO_CACHE_AT_OC to SYSDB_SUDO_CACHE_OCPavel Březina2012-08-071-3/+3
| | | | | It does not contain name of the object class attribute but the value itself. I renamed it to avoid confusion.
* Fix uninitialized valuesNick Guay2012-07-181-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1379
* sudo: clean upPavel Březina2012-06-291-206/+0
|
* sudo sysdb: add expiration time to the filterPavel Březina2012-06-291-0/+8
|
* sysdb: remove sudo_set/get_refreshedPavel Březina2012-06-291-57/+0
|
* sysdb: add getter/setter for last sudo full refresh timePavel Březina2012-06-291-0/+143
|
* sudo sysdb: make sysdb_get_sudo_user_info more configurablePavel Březina2012-06-291-25/+35
|
* sysdb: return proper error code from sysdb_sudo_purge_allJakub Hrozek2012-05-101-1/+1
|
* SUDO: Return ret, not EOKJakub Hrozek2012-05-021-1/+1
| | | | | | | This patch fixes bad refactoring - the function used to return value directly on error and EOK as the last statement. If was then converted into using goto label, but the last statement was still returning EOK instead of the value it should.
* Redesign purging of the sudo cachePavel Březina2012-02-171-71/+301
| | | | https://fedorahosted.org/sssd/ticket/1173
* Improve debug messages in sysdb_sudo_check_time()Pavel Březina2012-02-101-4/+16
|
* SUDO Integration - sysdb_sudo_check_time() fixPavel Březina2012-02-061-6/+8
|
* Fixes for sudo_timedJakub Hrozek2012-02-041-23/+40
| | | | https://fedorahosted.org/sssd/ticket/1116
* SUDO Integration - responder 'sudo_timed' optionPavel Březina2012-02-041-36/+123
| | | | https://fedorahosted.org/sssd/ticket/1116
* SUDO Integration - make sysdb_get_sudo_filter() more configurablePavel Březina2012-01-271-42/+57
| | | | https://fedorahosted.org/sssd/ticket/1143
* SUDO Integration - functions for manipulating with 'refreshed' attributePavel Březina2012-01-171-0/+58
| | | | https://fedorahosted.org/sssd/ticket/1110
* SUDO Integration review issuesPavel Březina2012-01-171-20/+13
|
* SUDO Integration - sysdb interfaceJakub Hrozek2011-12-161-0/+333