From: 姚福峰 <yffbrave@163.com>
To: xen-devel@lists.xensource.com
Subject: How to create shadow page table of my own?
Date: Mon, 21 Feb 2011 14:53:42 +0800 (CST) [thread overview]
Message-ID: <42c66b.5373.12e46feb9a9.Coremail.yffbrave@163.com> (raw)
[-- 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
next reply other threads:[~2011-02-21 6:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-21 6:53 姚福峰 [this message]
2011-02-21 10:31 ` How to create shadow page table of my own? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42c66b.5373.12e46feb9a9.Coremail.yffbrave@163.com \
--to=yffbrave@163.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).