2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Contact: Bartlomiej Grzelewski <b.grzelewski@samsung.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License
20 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
22 * @brief List of all protocols supported by security server.
25 #include <protocols.h>
28 namespace SecurityServer {
30 char const * const SERVICE_SOCKET_SHARED_MEMORY =
31 "/tmp/.security-server-api-data-share.sock";
32 char const * const SERVICE_SOCKET_GET_GID =
33 "/tmp/.security-server-api-get-gid.sock";
34 char const * const SERVICE_SOCKET_PRIVILEGE_BY_PID =
35 "/tmp/.security-server-api-privilege-by-pid.sock";
36 char const * const SERVICE_SOCKET_APP_PERMISSIONS =
37 "/tmp/.security-server-api-app-permissions.sock";
38 char const * const SERVICE_SOCKET_APP_PRIVILEGE_BY_NAME =
39 "/tmp/.security-server-api-app-privilege-by-name.sock";
40 char const * const SERVICE_SOCKET_COOKIE_GET =
41 "/tmp/.security-server-api-cookie-get.sock";
42 char const * const SERVICE_SOCKET_COOKIE_CHECK =
43 "/tmp/.security-server-api-cookie-check.sock";
44 char const * const SERVICE_SOCKET_PASSWD_CHECK =
45 "/tmp/.security-server-api-password-check.sock";
46 char const * const SERVICE_SOCKET_PASSWD_SET =
47 "/tmp/.security-server-api-password-set.sock";
48 char const * const SERVICE_SOCKET_PASSWD_RESET =
49 "/tmp/.security-server-api-password-reset.sock";
50 char const * const SERVICE_SOCKET_INSTALLER =
51 "/tmp/.security-manager-api.sock";
53 const size_t COOKIE_SIZE = 20;
55 const size_t MAX_PASSWORD_LEN = 32;
56 const unsigned int MAX_PASSWORD_HISTORY = 50;
57 const unsigned int PASSWORD_INFINITE_EXPIRATION_DAYS = 0;
58 const unsigned int PASSWORD_INFINITE_ATTEMPT_COUNT = 0;
59 const unsigned int PASSWORD_API_NO_EXPIRATION = 0xFFFFFFFF;
61 const int SECURITY_SERVER_MAX_OBJ_NAME = 30;
63 } // namespace SecurityServer