摘要:
120int register_security(struct security_operations *ops) 121{ 122 if (verify(ops)) { 123 printk(KERN_DEBUG "%s could not verify " 124 "security_operations structure.\n", __func__); 125 return -EINVAL; 126 } 127 128 if (securi...
阅读全文
posted @ 2012-05-28 17:22
唯乐ice
阅读(496)
推荐(0)
摘要:
struct security_operations {1451 char name[SECURITY_NAME_MAX + 1];14521453 int (*ptrace_access_check) (struct task_struct *child, unsigned int mode);1454 int (*ptrace_traceme) (struct task_struct *parent);1455 int (*capget) (struct task_struct *target,1456 ...
阅读全文
posted @ 2012-05-28 13:24
唯乐ice
阅读(573)
推荐(0)
摘要:
116struct cred { 117 atomic_t usage; 118#ifdef CONFIG_DEBUG_CREDENTIALS 119 atomic_t subscribers; /* number of processes subscribed */ 120 void *put_addr; 121 unsigned magic; 122#define CRED_MAGIC 0x43736564 123#define CRED_MAGIC_D...
阅读全文
posted @ 2012-05-28 12:34
唯乐ice
阅读(472)
推荐(0)
摘要:
struct task_struct {1171 volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */1172 void *stack;1173 atomic_t usage;1174 unsigned int flags; /* per process flags, defined below */1175 unsigned int ptrace;11761177 int lock_depth; /* B...
阅读全文
posted @ 2012-05-28 12:29
唯乐ice
阅读(837)
推荐(0)
摘要:
1320 struct super_block {1321 struct list_head s_list; /* Keep this first */1322 dev_t s_dev; /* search index; _not_ kdev_t */1323 unsigned char s_dirt;1324 unsigned char s_blocksize_bits;1325 unsigned long s_blocksize;1326 loff_t ...
阅读全文
posted @ 2011-11-28 16:33
唯乐ice
阅读(315)
推荐(0)
摘要:
108 /** 109 * register_security - registers a security framework with the kernel 110 * @ops: a pointer to the struct security_options that is to be registered 111 * 112 * This function allows a security module to register itself with the 113 * kernel security subsystem. Some rudimentary check...
阅读全文
posted @ 2011-11-16 11:35
唯乐ice
阅读(313)
推荐(0)
摘要:
1378 struct security_operations {1379 char name[SECURITY_NAME_MAX + 1];1380 1381 int (*ptrace_access_check) (struct task_struct *child, unsigned int mode);1382 int (*ptrace_traceme) (struct task_struct *parent);1383 int (*capget) (struct task_struct *target,1384 kernel...
阅读全文
posted @ 2011-11-08 09:33
唯乐ice
阅读(752)
推荐(0)
摘要:
130 struct vm_area_struct {131 struct mm_struct * vm_mm; /* The address space we belong to. */132 unsigned long vm_start; /* Our start address within vm_mm. */133 unsigned long vm_end; /* The first byte after our end address134 within vm_mm. */135 136 ...
阅读全文
posted @ 2011-10-30 19:34
唯乐ice
阅读(689)
推荐(0)
摘要:
222 struct mm_struct {223 struct vm_area_struct * mmap; /* list of VMAs */224 struct rb_root mm_rb;225 struct vm_area_struct * mmap_cache; /* last find_vma result */226 #ifdef CONFIG_MMU227 unsigned long (*get_unmapped_area) (struct file *filp,228 unsigned long ...
阅读全文
posted @ 2011-10-30 14:55
唯乐ice
阅读(737)
推荐(0)
摘要:
#include<stdio.h>#include<stdlib.h>typedef struct Joseph{ int num; struct Joseph *prev; struct Joseph *next;}Joseph;Joseph * del_link(Joseph *person, Joseph *tmp){ Joseph *s = tmp; if(tmp == person) { person = person->next; } tmp->prev->next = tmp->next; tmp->next->prev
阅读全文
posted @ 2011-09-07 10:59
唯乐ice
阅读(370)
推荐(1)