Skip to content

Commit 3fab191

Browse files
author
Ingo Molnar
committed
Merge branch 'linus' into x86/core
2 parents 93394a7 + 7c730cc commit 3fab191

File tree

3,171 files changed

+253075
-129632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,171 files changed

+253075
-129632
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
What: security/ima/policy
2+
Date: May 2008
3+
Contact: Mimi Zohar <[email protected]>
4+
Description:
5+
The Trusted Computing Group(TCG) runtime Integrity
6+
Measurement Architecture(IMA) maintains a list of hash
7+
values of executables and other sensitive system files
8+
loaded into the run-time of this system. At runtime,
9+
the policy can be constrained based on LSM specific data.
10+
Policies are loaded into the securityfs file ima/policy
11+
by opening the file, writing the rules one at a time and
12+
then closing the file. The new policy takes effect after
13+
the file ima/policy is closed.
14+
15+
rule format: action [condition ...]
16+
17+
action: measure | dont_measure
18+
condition:= base | lsm
19+
base: [[func=] [mask=] [fsmagic=] [uid=]]
20+
lsm: [[subj_user=] [subj_role=] [subj_type=]
21+
[obj_user=] [obj_role=] [obj_type=]]
22+
23+
base: func:= [BPRM_CHECK][FILE_MMAP][INODE_PERMISSION]
24+
mask:= [MAY_READ] [MAY_WRITE] [MAY_APPEND] [MAY_EXEC]
25+
fsmagic:= hex value
26+
uid:= decimal value
27+
lsm: are LSM specific
28+
29+
default policy:
30+
# PROC_SUPER_MAGIC
31+
dont_measure fsmagic=0x9fa0
32+
# SYSFS_MAGIC
33+
dont_measure fsmagic=0x62656572
34+
# DEBUGFS_MAGIC
35+
dont_measure fsmagic=0x64626720
36+
# TMPFS_MAGIC
37+
dont_measure fsmagic=0x01021994
38+
# SECURITYFS_MAGIC
39+
dont_measure fsmagic=0x73636673
40+
41+
measure func=BPRM_CHECK
42+
measure func=FILE_MMAP mask=MAY_EXEC
43+
measure func=INODE_PERM mask=MAY_READ uid=0
44+
45+
The default policy measures all executables in bprm_check,
46+
all files mmapped executable in file_mmap, and all files
47+
open for read by root in inode_permission.
48+
49+
Examples of LSM specific definitions:
50+
51+
SELinux:
52+
# SELINUX_MAGIC
53+
dont_measure fsmagic=0xF97CFF8C
54+
55+
dont_measure obj_type=var_log_t
56+
dont_measure obj_type=auditd_log_t
57+
measure subj_user=system_u func=INODE_PERM mask=MAY_READ
58+
measure subj_role=system_r func=INODE_PERM mask=MAY_READ
59+
60+
Smack:
61+
measure subj_user=_ func=INODE_PERM mask=MAY_READ

Documentation/DocBook/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \
1212
kernel-api.xml filesystems.xml lsm.xml usb.xml kgdb.xml \
1313
gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \
1414
genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
15-
mac80211.xml debugobjects.xml sh.xml regulator.xml
15+
mac80211.xml debugobjects.xml sh.xml regulator.xml \
16+
alsa-driver-api.xml writing-an-alsa-driver.xml
1617

1718
###
1819
# The build process is as follows (targets):

Documentation/sound/alsa/DocBook/alsa-driver-api.tmpl renamed to Documentation/DocBook/alsa-driver-api.tmpl

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2-
3-
<book>
4-
<?dbhtml filename="index.html">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3+
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
54

65
<!-- ****************************************************** -->
76
<!-- Header -->
87
<!-- ****************************************************** -->
8+
<book id="ALSA-Driver-API">
99
<bookinfo>
1010
<title>The ALSA Driver API</title>
1111

@@ -35,6 +35,8 @@
3535

3636
</bookinfo>
3737

38+
<toc></toc>
39+
3840
<chapter><title>Management of Cards and Devices</title>
3941
<sect1><title>Card Management</title>
4042
!Esound/core/init.c
@@ -71,6 +73,10 @@
7173
!Esound/pci/ac97/ac97_codec.c
7274
!Esound/pci/ac97/ac97_pcm.c
7375
</sect1>
76+
<sect1><title>Virtual Master Control API</title>
77+
!Esound/core/vmaster.c
78+
!Iinclude/sound/control.h
79+
</sect1>
7480
</chapter>
7581
<chapter><title>MIDI API</title>
7682
<sect1><title>Raw MIDI API</title>
@@ -88,6 +94,9 @@
8894
<chapter><title>Miscellaneous Functions</title>
8995
<sect1><title>Hardware-Dependent Devices API</title>
9096
!Esound/core/hwdep.c
97+
</sect1>
98+
<sect1><title>Jack Abstraction Layer API</title>
99+
!Esound/core/jack.c
91100
</sect1>
92101
<sect1><title>ISA DMA Helpers</title>
93102
!Esound/core/isadma.c

Documentation/DocBook/genericirq.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ desc->chip->end();
440440
used in the generic IRQ layer.
441441
</para>
442442
!Iinclude/linux/irq.h
443+
!Iinclude/linux/interrupt.h
443444
</chapter>
444445

445446
<chapter id="pubfunctions">

Documentation/DocBook/mac80211.tmpl

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
</authorgroup>
1818

1919
<copyright>
20-
<year>2007</year>
21-
<year>2008</year>
20+
<year>2007-2009</year>
2221
<holder>Johannes Berg</holder>
2322
</copyright>
2423

@@ -165,8 +164,8 @@ usage should require reading the full document.
165164
!Pinclude/net/mac80211.h Frame format
166165
</sect1>
167166
<sect1>
168-
<title>Alignment issues</title>
169-
<para>TBD</para>
167+
<title>Packet alignment</title>
168+
!Pnet/mac80211/rx.c Packet alignment
170169
</sect1>
171170
<sect1>
172171
<title>Calling into mac80211 from interrupts</title>
@@ -223,6 +222,17 @@ usage should require reading the full document.
223222
!Finclude/net/mac80211.h ieee80211_key_flags
224223
</chapter>
225224

225+
<chapter id="powersave">
226+
<title>Powersave support</title>
227+
!Pinclude/net/mac80211.h Powersave support
228+
</chapter>
229+
230+
<chapter id="beacon-filter">
231+
<title>Beacon filter support</title>
232+
!Pinclude/net/mac80211.h Beacon filter support
233+
!Finclude/net/mac80211.h ieee80211_beacon_loss
234+
</chapter>
235+
226236
<chapter id="qos">
227237
<title>Multiple queues and QoS support</title>
228238
<para>TBD</para>

Documentation/DocBook/uio-howto.tmpl

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ GPL version 2.
4141
</abstract>
4242

4343
<revhistory>
44+
<revision>
45+
<revnumber>0.8</revnumber>
46+
<date>2008-12-24</date>
47+
<authorinitials>hjk</authorinitials>
48+
<revremark>Added name attributes in mem and portio sysfs directories.
49+
</revremark>
50+
</revision>
4451
<revision>
4552
<revnumber>0.7</revnumber>
4653
<date>2008-12-23</date>
@@ -303,10 +310,17 @@ interested in translating it, please email me
303310
appear if the size of the mapping is not 0.
304311
</para>
305312
<para>
306-
Each <filename>mapX/</filename> directory contains two read-only files
307-
that show start address and size of the memory:
313+
Each <filename>mapX/</filename> directory contains four read-only files
314+
that show attributes of the memory:
308315
</para>
309316
<itemizedlist>
317+
<listitem>
318+
<para>
319+
<filename>name</filename>: A string identifier for this mapping. This
320+
is optional, the string can be empty. Drivers can set this to make it
321+
easier for userspace to find the correct mapping.
322+
</para>
323+
</listitem>
310324
<listitem>
311325
<para>
312326
<filename>addr</filename>: The address of memory that can be mapped.
@@ -366,10 +380,17 @@ offset = N * getpagesize();
366380
<filename>/sys/class/uio/uioX/portio/</filename>.
367381
</para>
368382
<para>
369-
Each <filename>portX/</filename> directory contains three read-only
370-
files that show start, size, and type of the port region:
383+
Each <filename>portX/</filename> directory contains four read-only
384+
files that show name, start, size, and type of the port region:
371385
</para>
372386
<itemizedlist>
387+
<listitem>
388+
<para>
389+
<filename>name</filename>: A string identifier for this port region.
390+
The string is optional and can be empty. Drivers can set it to make it
391+
easier for userspace to find a certain port region.
392+
</para>
393+
</listitem>
373394
<listitem>
374395
<para>
375396
<filename>start</filename>: The first port of this region.

Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl renamed to Documentation/DocBook/writing-an-alsa-driver.tmpl

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2-
3-
<book>
4-
<?dbhtml filename="index.html">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3+
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
54

65
<!-- ****************************************************** -->
76
<!-- Header -->
87
<!-- ****************************************************** -->
8+
<book id="Writing-an-ALSA-Driver">
99
<bookinfo>
1010
<title>Writing an ALSA Driver</title>
1111
<author>
@@ -492,9 +492,9 @@
492492
}
493493
494494
/* (2) */
495-
card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
496-
if (card == NULL)
497-
return -ENOMEM;
495+
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
496+
if (err < 0)
497+
return err;
498498
499499
/* (3) */
500500
err = snd_mychip_create(card, pci, &chip);
@@ -590,8 +590,9 @@
590590
<programlisting>
591591
<![CDATA[
592592
struct snd_card *card;
593+
int err;
593594
....
594-
card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
595+
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
595596
]]>
596597
</programlisting>
597598
</informalexample>
@@ -809,26 +810,28 @@
809810

810811
<para>
811812
As mentioned above, to create a card instance, call
812-
<function>snd_card_new()</function>.
813+
<function>snd_card_create()</function>.
813814

814815
<informalexample>
815816
<programlisting>
816817
<![CDATA[
817818
struct snd_card *card;
818-
card = snd_card_new(index, id, module, extra_size);
819+
int err;
820+
err = snd_card_create(index, id, module, extra_size, &card);
819821
]]>
820822
</programlisting>
821823
</informalexample>
822824
</para>
823825

824826
<para>
825-
The function takes four arguments, the card-index number, the
827+
The function takes five arguments, the card-index number, the
826828
id string, the module pointer (usually
827829
<constant>THIS_MODULE</constant>),
828-
and the size of extra-data space. The last argument is used to
830+
the size of extra-data space, and the pointer to return the
831+
card instance. The extra_size argument is used to
829832
allocate card-&gt;private_data for the
830833
chip-specific data. Note that these data
831-
are allocated by <function>snd_card_new()</function>.
834+
are allocated by <function>snd_card_create()</function>.
832835
</para>
833836
</section>
834837

@@ -915,15 +918,16 @@
915918
</para>
916919

917920
<section id="card-management-chip-specific-snd-card-new">
918-
<title>1. Allocating via <function>snd_card_new()</function>.</title>
921+
<title>1. Allocating via <function>snd_card_create()</function>.</title>
919922
<para>
920923
As mentioned above, you can pass the extra-data-length
921-
to the 4th argument of <function>snd_card_new()</function>, i.e.
924+
to the 4th argument of <function>snd_card_create()</function>, i.e.
922925

923926
<informalexample>
924927
<programlisting>
925928
<![CDATA[
926-
card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct mychip));
929+
err = snd_card_create(index[dev], id[dev], THIS_MODULE,
930+
sizeof(struct mychip), &card);
927931
]]>
928932
</programlisting>
929933
</informalexample>
@@ -952,16 +956,16 @@
952956

953957
<para>
954958
After allocating a card instance via
955-
<function>snd_card_new()</function> (with
956-
<constant>NULL</constant> on the 4th arg), call
959+
<function>snd_card_create()</function> (with
960+
<constant>0</constant> on the 4th arg), call
957961
<function>kzalloc()</function>.
958962

959963
<informalexample>
960964
<programlisting>
961965
<![CDATA[
962966
struct snd_card *card;
963967
struct mychip *chip;
964-
card = snd_card_new(index[dev], id[dev], THIS_MODULE, NULL);
968+
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
965969
.....
966970
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
967971
]]>
@@ -5750,8 +5754,9 @@ struct _snd_pcm_runtime {
57505754
....
57515755
struct snd_card *card;
57525756
struct mychip *chip;
5757+
int err;
57535758
....
5754-
card = snd_card_new(index[dev], id[dev], THIS_MODULE, NULL);
5759+
err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
57555760
....
57565761
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
57575762
....
@@ -5763,7 +5768,7 @@ struct _snd_pcm_runtime {
57635768
</informalexample>
57645769

57655770
When you created the chip data with
5766-
<function>snd_card_new()</function>, it's anyway accessible
5771+
<function>snd_card_create()</function>, it's anyway accessible
57675772
via <structfield>private_data</structfield> field.
57685773

57695774
<informalexample>
@@ -5775,9 +5780,10 @@ struct _snd_pcm_runtime {
57755780
....
57765781
struct snd_card *card;
57775782
struct mychip *chip;
5783+
int err;
57785784
....
5779-
card = snd_card_new(index[dev], id[dev], THIS_MODULE,
5780-
sizeof(struct mychip));
5785+
err = snd_card_create(index[dev], id[dev], THIS_MODULE,
5786+
sizeof(struct mychip), &card);
57815787
....
57825788
chip = card->private_data;
57835789
....

Documentation/block/switching-sched.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,3 @@ noop anticipatory deadline [cfq]
3535
# echo anticipatory > /sys/block/hda/queue/scheduler
3636
# cat /sys/block/hda/queue/scheduler
3737
noop [anticipatory] deadline cfq
38-
39-
Each io queue has a set of io scheduler tunables associated with it. These
40-
tunables control how the io scheduler works. You can find these entries
41-
in:
42-
43-
/sys/block/<device>/queue/iosched

0 commit comments

Comments
 (0)