[REFACTOR] Refactor setting smack attributes to `fd_setup_smack_attributes`
[platform/core/system/swap-manager.git] / daemon / utils.h
index eecd031..a84f0cc 100644 (file)
@@ -1,30 +1,33 @@
 /*
-*  DA manager
-*
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
-*
-* Contact: 
-*
-* Jaewon Lim <jaewon81.lim@samsung.com>
-* Woojin Jung <woojin2.jung@samsung.com>
-* Juyoung Kim <j0.kim@samsung.com>
-* 
+ *  DA manager
+ *
+ * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ *
+ * Jaewon Lim <jaewon81.lim@samsung.com>
+ * Woojin Jung <woojin2.jung@samsung.com>
+ * Juyoung Kim <j0.kim@samsung.com>
+ * Cherepanov Vitaliy <v.cherepanov@samsung.com>
+ * Nikita Kalyazin    <n.kalyazin@samsung.com>
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-* Contributors:
-* - S-Core Co., Ltd
-*
-*/ 
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ * - Samsung RnD Institute Russia
+ *
+ */
 
 #include <stdint.h>
 #include <sys/types.h>
@@ -58,8 +61,6 @@ int remove_indir(const char *dirname);
 
 char* get_app_name(char* binary_path);
 
-int exec_app(const char* exec_path, int app_type);
-
 void kill_app(const char* binary_path);
 
 pid_t find_pid_from_path(const char* path);
@@ -71,6 +72,10 @@ int is_app_built_pie(void);
 int get_app_base_address(int *baseAddress);
 int is_same_app_process(char* appPath, int pid);
 
+int exec_app_tizen(const char *app_id, const char *exec_path);
+int exec_app_common(const char* exec_path);
+char *dereference_tizen_exe_path(const char *path, char *resolved);
+void fd_setup_smack_attributes(int fd);
 #ifdef __cplusplus
 }
 #endif