4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd All Rights Reserved
6 * Contact: Bumjin Im <bj.im@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License
22 #ifndef SECURITY_SERVER_UTIL_H
23 #define SECURITY_SERVER_UTIL_H
26 /* These msg type MUST BE REMOVED before release **************************/
27 #define SECURITY_SERVER_MSG_TYPE_GET_ALL_COOKIES_REQUEST 0x51
28 #define SECURITY_SERVER_MSG_TYPE_GET_ALL_COOKIES_RESPONSE 0x52
29 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_FROM_PID_REQUEST 0x53
30 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_RESPONSE 0x54
31 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_FROM_COOKIE_REQUEST 0x55
32 /**********************************************************************/
34 int util_process_all_cookie(int sockfd, cookie_list* list);
35 int util_process_cookie_from_pid(int sockfd, cookie_list* list);
36 int util_process_cookie_from_cookie(int sockfd, cookie_list* list);
37 int util_smack_label_is_valid(const char *smack_label);