Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9451
b: refs/heads/master
c: f04da5d
h: refs/heads/master
i:
  9449: 4a2d435
  9447: 28aecef
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Sep 25, 2005
1 parent b2bdff5 commit ce4d8ef
Show file tree
Hide file tree
Showing 275 changed files with 3,976 additions and 13,991 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b38708fca9cc60d8a073a67c3b366116e38011c5
refs/heads/master: f04da5def8c460b1b52d3142da827ab01efa3a15
10 changes: 0 additions & 10 deletions trunk/Documentation/Changes
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,6 @@ udev
udev is a userspace application for populating /dev dynamically with
only entries for devices actually present. udev replaces devfs.

FUSE
----

Needs libfuse 2.4.0 or later. Absolute minimum is 2.3.0 but mount
options 'direct_io' and 'kernel_cache' won't work.

Networking
==========

Expand Down Expand Up @@ -396,10 +390,6 @@ udev
----
o <http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html>

FUSE
----
o <http://sourceforge.net/projects/fuse>

Networking
**********

Expand Down
74 changes: 19 additions & 55 deletions trunk/Documentation/keys.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ KEY ACCESS PERMISSIONS
======================

Keys have an owner user ID, a group access ID, and a permissions mask. The mask
has up to eight bits each for possessor, user, group and other access. Only
five of each set of eight bits are defined. These permissions granted are:
has up to eight bits each for user, group and other access. Only five of each
set of eight bits are defined. These permissions granted are:

(*) View

Expand Down Expand Up @@ -241,16 +241,16 @@ about the status of the key service:
type, description and permissions. The payload of the key is not available
this way:

SERIAL FLAGS USAGE EXPY PERM UID GID TYPE DESCRIPTION: SUMMARY
00000001 I----- 39 perm 1f1f0000 0 0 keyring _uid_ses.0: 1/4
00000002 I----- 2 perm 1f1f0000 0 0 keyring _uid.0: empty
00000007 I----- 1 perm 1f1f0000 0 0 keyring _pid.1: empty
0000018d I----- 1 perm 1f1f0000 0 0 keyring _pid.412: empty
000004d2 I--Q-- 1 perm 1f1f0000 32 -1 keyring _uid.32: 1/4
000004d3 I--Q-- 3 perm 1f1f0000 32 -1 keyring _uid_ses.32: empty
00000892 I--QU- 1 perm 1f000000 0 0 user metal:copper: 0
00000893 I--Q-N 1 35s 1f1f0000 0 0 user metal:silver: 0
00000894 I--Q-- 1 10h 001f0000 0 0 user metal:gold: 0
SERIAL FLAGS USAGE EXPY PERM UID GID TYPE DESCRIPTION: SUMMARY
00000001 I----- 39 perm 1f0000 0 0 keyring _uid_ses.0: 1/4
00000002 I----- 2 perm 1f0000 0 0 keyring _uid.0: empty
00000007 I----- 1 perm 1f0000 0 0 keyring _pid.1: empty
0000018d I----- 1 perm 1f0000 0 0 keyring _pid.412: empty
000004d2 I--Q-- 1 perm 1f0000 32 -1 keyring _uid.32: 1/4
000004d3 I--Q-- 3 perm 1f0000 32 -1 keyring _uid_ses.32: empty
00000892 I--QU- 1 perm 1f0000 0 0 user metal:copper: 0
00000893 I--Q-N 1 35s 1f0000 0 0 user metal:silver: 0
00000894 I--Q-- 1 10h 1f0000 0 0 user metal:gold: 0

The flags are:

Expand Down Expand Up @@ -637,34 +637,6 @@ call, and the key released upon close. How to deal with conflicting keys due to
two different users opening the same file is left to the filesystem author to
solve.

Note that there are two different types of pointers to keys that may be
encountered:

(*) struct key *

This simply points to the key structure itself. Key structures will be at
least four-byte aligned.

(*) key_ref_t

This is equivalent to a struct key *, but the least significant bit is set
if the caller "possesses" the key. By "possession" it is meant that the
calling processes has a searchable link to the key from one of its
keyrings. There are three functions for dealing with these:

key_ref_t make_key_ref(const struct key *key,
unsigned long possession);

struct key *key_ref_to_ptr(const key_ref_t key_ref);

unsigned long is_key_possessed(const key_ref_t key_ref);

The first function constructs a key reference from a key pointer and
possession information (which must be 0 or 1 and not any other value).

The second function retrieves the key pointer from a reference and the
third retrieves the possession flag.

When accessing a key's payload contents, certain precautions must be taken to
prevent access vs modification races. See the section "Notes on accessing
payload contents" for more information.
Expand Down Expand Up @@ -693,11 +665,7 @@ payload contents" for more information.

void key_put(struct key *key);

Or:

void key_ref_put(key_ref_t key_ref);

These can be called from interrupt context. If CONFIG_KEYS is not set then
This can be called from interrupt context. If CONFIG_KEYS is not set then
the argument will not be parsed.


Expand All @@ -721,17 +689,13 @@ payload contents" for more information.

(*) If a keyring was found in the search, this can be further searched by:

key_ref_t keyring_search(key_ref_t keyring_ref,
const struct key_type *type,
const char *description)
struct key *keyring_search(struct key *keyring,
const struct key_type *type,
const char *description)

This searches the keyring tree specified for a matching key. Error ENOKEY
is returned upon failure (use IS_ERR/PTR_ERR to determine). If successful,
the returned key will need to be released.

The possession attribute from the keyring reference is used to control
access through the permissions mask and is propagated to the returned key
reference pointer if successful.
is returned upon failure. If successful, the returned key will need to be
released.


(*) To check the validity of a key, this function can be called:
Expand Down Expand Up @@ -768,7 +732,7 @@ More complex payload contents must be allocated and a pointer to them set in
key->payload.data. One of the following ways must be selected to access the
data:

(1) Unmodifiable key type.
(1) Unmodifyable key type.

If the key type does not have a modify method, then the key's payload can
be accessed without any form of locking, provided that it's known to be
Expand Down
16 changes: 0 additions & 16 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,6 @@ P: H. Peter Anvin
M: hpa@zytor.com
S: Maintained

CPUSETS
P: Paul Jackson
P: Simon Derr
M: pj@sgi.com
M: simon.derr@bull.net
L: linux-kernel@vger.kernel.org
W: http://www.bullopensource.org/cpuset/
S: Supported

CRAMFS FILESYSTEM
W: http://sourceforge.net/projects/cramfs/
S: Orphan
Expand Down Expand Up @@ -1915,13 +1906,6 @@ M: joern@wh.fh-wedel.de
L: linux-mtd@lists.infradead.org
S: Maintained

PKTCDVD DRIVER
P: Peter Osterlund
M: petero2@telia.com
L: linux-kernel@vger.kernel.org
L: packet-writing@suse.com
S: Maintained

POSIX CLOCKS and TIMERS
P: George Anzinger
M: george@mvista.com
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ else
endif
@touch $@

archprepare: maketools
archprepare: maketools include/asm-arm/.arch

.PHONY: maketools FORCE
maketools: include/linux/version.h include/asm-arm/.arch FORCE
maketools: include/linux/version.h FORCE
$(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h

# Convert bzImage to zImage
Expand Down
Loading

0 comments on commit ce4d8ef

Please sign in to comment.