https://github.com/torvalds/linux
Revision 0a6bf658c3b9d1d0e520d320b6392c8680c2e381 authored by Ira W. Snyder on 13 December 2010, 16:42:30 UTC, committed by Guenter Roeck on 13 December 2010, 17:54:50 UTC
The ltc4215 driver used the chip's "power good" status bit to provide
the power1_alarm file. This is wrong: the chip is really reporting the
status of one of the monitored voltages.

Change the sysfs file from power1_alarm to in2_min_alarm instead. This
matches the voltage that the chip is raising an alarm for.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent 6313e3c
Raw File
Tip revision: 0a6bf658c3b9d1d0e520d320b6392c8680c2e381 authored by Ira W. Snyder on 13 December 2010, 16:42:30 UTC
hwmon: (ltc4215) make sysfs file match the alarm cause
Tip revision: 0a6bf65
SELinux.txt
If you want to use SELinux, chances are you will want
to use the distro-provided policies, or install the
latest reference policy release from
	http://oss.tresys.com/projects/refpolicy

However, if you want to install a dummy policy for
testing, you can do using 'mdp' provided under
scripts/selinux.  Note that this requires the selinux
userspace to be installed - in particular you will
need checkpolicy to compile a kernel, and setfiles and
fixfiles to label the filesystem.

	1. Compile the kernel with selinux enabled.
	2. Type 'make' to compile mdp.
	3. Make sure that you are not running with
	   SELinux enabled and a real policy.  If
	   you are, reboot with selinux disabled
	   before continuing.
	4. Run install_policy.sh:
		cd scripts/selinux
		sh install_policy.sh

Step 4 will create a new dummy policy valid for your
kernel, with a single selinux user, role, and type.
It will compile the policy, will set your SELINUXTYPE to
dummy in /etc/selinux/config, install the compiled policy
as 'dummy', and relabel your filesystem.
back to top