/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <talloc.h>
#include <tevent.h>
#include "sbus/sssd_dbus.h"
#include "providers/data_provider/dp_private.h"
#include "providers/data_provider/dp_iface.h"
char ***_rules)
{
const char *rule;
uint32_t i;
/* get dp flags */
goto done;
}
/* get type of the request */
goto done;
}
/* get additional arguments according to the request type */
switch (sudo_type) {
case BE_REQ_SUDO_FULL:
/* no arguments required */
break;
case BE_REQ_SUDO_RULES:
/* additional arguments:
* rules_num
* rules[rules_num]
*/
/* read rules_num */
goto done;
}
goto done;
}
goto done;
}
/* read the rules */
for (i = 0; i < num_rules; i++) {
!= DBUS_TYPE_STRING) {
goto done;
}
goto done;
}
}
break;
default:
return EINVAL;
}
*_sudo_type = sudo_type;
done:
}
return ret;
}
{
switch (type) {
case BE_REQ_SUDO_FULL:
return "full-refresh";
case BE_REQ_SUDO_RULES:
return NULL;
}
return NULL;
}
{
switch (type) {
case BE_REQ_SUDO_FULL:
return "SUDO Full Refresh";
case BE_REQ_SUDO_RULES:
return "SUDO Rules Refresh";
}
return NULL;
}
{
const char *key;
const char *name;
return ENOMEM;
}
return ret;
}
dp_req_reply_std, struct dp_reply_std);
return EOK;
}