Delete aul_proc_get_attr() 44/317844/1
authorChanggyu Choi <changyu.choi@samsung.com>
Thu, 9 Jan 2025 00:39:57 +0000 (09:39 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Thu, 9 Jan 2025 00:39:57 +0000 (09:39 +0900)
This api is only used in amd. so this implementation will move to amd.

Change-Id: I25c3de0f31581251333ab111311fa7bc4441294e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/aul/aul_proc.cc
src/aul/include/aul_proc.h

index 6b503076fdacabbcaf8a1a91932918e6522bf07c..238e7623f56811ea584b1702a2727f4b28966ae7 100644 (file)
@@ -164,16 +164,6 @@ extern "C" API int aul_proc_get_uid(pid_t pid, uid_t* uid) {
   return AUL_R_OK;
 }
 
-extern "C" API int aul_proc_get_attr(pid_t pid, char* buf, size_t buf_size) {
-  if (pid < 1 || buf == nullptr || buf_size <= 0) {
-    _E("Invalid parameter");
-    return AUL_R_EINVAL;
-  }
-
-  std::string path = "/proc/" + std::to_string(pid) + "/attr/current";
-  return ReadFromPath(path, buf, buf_size);
-}
-
 extern "C" API int aul_proc_get_cmdline(pid_t pid, char* buf, size_t buf_size) {
   if (pid < 1 || buf == nullptr || buf_size <= 0) {
     _E("Invalid parameter");
index 39e975187328c30bc5f9a7a9326313cdd7588b8e..329ac81d6c96522b37133cc9449b0c81f2cb31e4 100644 (file)
@@ -38,18 +38,6 @@ extern "C" {
  */
 int aul_proc_get_uid(pid_t pid, uid_t *uid);
 
-/**
- * @brief Gets the SMACK label of the process from the proc filesystem.
- * @since_tizen 6.5
- * @param[in]   pid             The process ID
- * @param[in]   buf             The buffer
- * @param[in]   buf_size        The size of the buffer
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @remarks This function is only for App Framework internally.
- */
-int aul_proc_get_attr(pid_t pid, char *buf, size_t buf_size);
-
 /**
  * @brief Gets the cmdline of the process from the proc filesystem.
  * @since_tizen 6.5