X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fisadmin.h;fp=src%2Fgroups.h;h=25ebd75252c869c12478179458cb972ca25bd056;hb=27d97dcc17258efe71687f94f5154a806a0bd10b;hp=57175fc9f4205fc336138baf02647113eb04ebe4;hpb=acc7c3093950696b214e32709477bd42737abbc2;p=platform%2Fcore%2Fsystem%2Ftizen-platform-wrapper.git diff --git a/src/groups.h b/src/isadmin.h similarity index 67% rename from src/groups.h rename to src/isadmin.h index 57175fc..25ebd75 100644 --- a/src/groups.h +++ b/src/isadmin.h @@ -22,27 +22,31 @@ extern "C" { #endif -#ifndef TIZEN_PLATFORM_WRAPPER_GROUPS_H -#define TIZEN_PLATFORM_WRAPPER_GROUPS_H - -#include "tzplatform_variables.h" +#ifndef TIZEN_PLATFORM_WRAPPER_ISADMIN_H +#define TIZEN_PLATFORM_WRAPPER_ISADMIN_H /* - * This feature aims to know if a user belongs to a specified group + * DISCLAIMER : + * This header and its associated source file are present to maintain a + * temporary solution. We need to know if an user have the privilege for + * a particular action. + * + * At the end, this feature will be managed by Cynara + * */ /* - * Return 0 if the given uid is not in the specified group. - * Return 1 if the given uid is in the specified group. + * Return 0 if the given uid is not in the admin group. + * Return 1 if the given uid is in the admin group. * * If you pass the -1 value to this function it will take the current uid given * by the POSIX function getuid(); */ -int _has_specified_group_static_(uid_t uid, enum tzplatform_variable group); +int _has_system_group_static_(uid_t uid); #ifdef __cplusplus } #endif -#endif /* TIZEN_PLATFORM_WRAPPER_GROUPS_H */ +#endif /* TIZEN_PLATFORM_WRAPPER_ISADMIN_H */