xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* How to create shadow page table of my own?
@ 2011-02-21  6:53 姚福峰
  2011-02-21 10:31 ` Tim Deegan
  2011-02-21 13:57 ` 姚福峰
  0 siblings, 2 replies; 6+ messages in thread
From: 姚福峰 @ 2011-02-21  6:53 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1323 bytes --]

Hi, guys
Recently I have been doing some research & I've got in trouble.
I have altered the kernel of domU and put the code section and data section of selinux security server which locate ~/security/selinux/ss into two seperate sections in the final vmlinux image(see below)


objdump -h vmlinux


vmlinux:     file format elf32-i386


Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         0048eb08  c0100000  00100000  00001000  2**6
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  1sim_k_text    0000b7cc  c058f000  0058f000  00490000  2**4
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
........................................
 16 .data         000400c8  c0760000  00760000  00661000  2**12
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
 17sim_k_data    0000007c  c07a1000  007a1000  006a2000  2**5
                  CONTENTS, ALLOC, LOAD, DATA
.....................................


And now I want to create shadow page table of my own for this two sections so that when the kernel use the security server of selinux, it will use my own SPT to access code & data rather than the auto-generated SPT for the kernel.
So, where should I begin to achieve my goal, how can I maintain my SPT in the hypervisor.
Help me through the jungle, please!

[-- Attachment #1.2: Type: text/html, Size: 2155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-28 11:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21  6:53 How to create shadow page table of my own? 姚福峰
2011-02-21 10:31 ` Tim Deegan
2011-02-21 13:57 ` 姚福峰
2011-02-21 14:20   ` Tim Deegan
2011-02-22  1:16   ` 姚福峰
2011-02-28 11:55   ` Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).