The pass-hal-tm1 package handles the many sysfs nodes in order
to change the state of h/w resources. All sysfs node should
be required to change the permission from root to system_fw
because PASS daemon has the system_fw permission.
So, this patch adds new pass-hal.conf which contains
the permission information for the required sysfs nodes.
Change-Id: I62b761c101841ec0db09389ac6476d3d00d14ab6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass.conf
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource0.conf)
INSTALL(FILES ${CONF_FILES} DESTINATION ${CONF_DIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-hal.conf DESTINATION ${LIB_INSTALL_DIR}/tmpfiles.d)
rm -rf %{buildroot}
%make_install
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+systemd-tmpfiles /usr/lib/tmpfiles.d/pass-hal.conf --create
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%{_libdir}/pass/*.so
+%{_libdir}/tmpfiles.d/pass-hal.conf
%config %{_sysconfdir}/pass/pass.conf
%config %{_sysconfdir}/pass/pass-resource0.conf
--- /dev/null
+z /sys/devices/system/cpu/cpufreq/pmqos/* 0660 root system_fw -
+t /sys/devices/system/cpu/cpufreq/pmqos/* - - - - security.SMACK64="System"
+z /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 0440 root system_fw -
+t /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq - - - - security.SMACK64="System"