Direct access to /proc/xxx/attr/current file is no longer permitted,
so the relevant code has been removed.
The function containing the code is now unused
and will be implemented in a different way in the future if needed.
Change-Id: I4a30ee2208f0275bba671ea768368dcd49fb19f6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
int proc_get_label(pid_t pid, char *label)
{
- char buf[PROC_BUF_MAX];
- FILE *fp;
-
- snprintf(buf, sizeof(buf), "/proc/%d/attr/current", pid);
- fp = fopen(buf, "r");
- if (fp == NULL)
- return STC_ERROR_FAIL;
-
- if (fgets(label, PROC_NAME_MAX-1, fp) == NULL) {
- fclose(fp);
- return STC_ERROR_FAIL;
- }
- fclose(fp);
- return STC_ERROR_NONE;
+ return STC_ERROR_NOTIMPL;
}
int proc_get_exepath(pid_t pid, char *buf, int len)