Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
syscalls - gate to the linux kernel
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Bernhard M. Wiedemann
June 27, 2016
Technology
420
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
syscalls - gate to the linux kernel
https://events.opensuse.org/conference/oSC16/program/proposal/840
Bernhard M. Wiedemann
June 27, 2016
More Decks by Bernhard M. Wiedemann
See All by Bernhard M. Wiedemann
reproducible builds and openSUSE
bmwiedemann
0
920
Other Decks in Technology
See All in Technology
Agent Skills設計で柔軟性と硬さのバランスが難しい話
nassy20
0
130
ルールやカスタム機能、どう活かす?ハンズオンで体感するIBM Bobの出力コントロール
muehara
1
170
作って終わりにしない タイミーのセマンティックレイヤー育成の現在地
chanyou0311
4
2.4k
気軽に使える"情報のハブ"としてのNotion活用 〜フロー情報の集積点 と、 Claude Code × Notion AI〜
syucream
1
150
エンジニアリング戦略の作り方 / Crafting Engineering Strategy
iwashi86
21
7k
AIエージェントが名古屋の猛暑からあなたを守る
happysamurai294
0
130
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.5k
【2026年版】 ベクトル検索䛸 Embedding最前線
mocobeta
5
1.8k
攻撃者視点で考えるDetection Engineering
cryptopeg
3
1.9k
2026TECHFRESH畢業分享會 - 葬送的通靈師:化系統與用戶雜訊成行動訊號
line_developers_tw
PRO
0
1.2k
2026TECHFRESH畢業分享會 - Lightning Talk - 資料也要 CI/CD? 用 Airbyte 自動化資料同步
line_developers_tw
PRO
0
1.2k
Bedrock AgentCore RuntimeでAuth0 Changelog調査AIをアップグレードした話
t5u8a5a
1
170
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
160
How to Talk to Developers About Accessibility
jct
2
230
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
300
Raft: Consensus for Rubyists
vanstee
141
7.5k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
540
Skip the Path - Find Your Career Trail
mkilby
1
150
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Done Done
chrislema
186
16k
Writing Fast Ruby
sferik
630
63k
Transcript
Syscalls openSUSE Conference 2016 By Bernhard M. Wiedemann bwiedemann@SUSE
© ScotXW / Wikipedia License: CC BY-SA 3.0
An Example #include <stdio.h> int main() { printf("Hello World!\n"); return
0; }
In the glibc • /usr/include/asm-generic/unistd.h: #define __NR_write 64 __SYSCALL(__NR_write, sys_write)
vDSO > ldd hello1 linux-vdso.so.1 (0x00007fffa07e2000) libc.so.6 => /lib64/libc.so.6 (0x00007fb892c48000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb893018000)
On the Kernel-Side • http://lxr.free-electrons.com/source/fs/open.c#L1023 SYSCALL_DEFINE3(open, const char __user *,
filename, int, flags, umode_t, mode) { if (force_o_largefile()) flags |= O_LARGEFILE; return do_sys_open(AT_FDCWD, filename, flags, mode); }
bootcd:/ # echo newuser::500:500:TestUser:/home/newuser:/bin/bash >>/etc/passwd bash: /etc/passwd: Readonly file system
bootcd:/ # insmod translucency Using /lib/modules/2.4.184GB/kernel/fs/translucency.o bootcd:/ # echo "/ > /var/tmp" > /proc/sys/translucency/0 bootcd:/ # echo newuser::500:500:TestUser:/home/newuser:/bin/bash >>/etc/passwd bootcd:/ # tail 3 /etc/passwd perforce:x:68:60:perfoce admin:/var/lib/perforce:/bin/false nobody:x:65534:65534:nobody:/var/lib/nobody:/bin/bash newuser::500:500:TestUser:/home/newuser:/bin/bash bootcd:/ # echo > /proc/sys/translucency/0 bootcd:/ # rmmod translucency bootcd:/ # tail 3 /etc/passwd pop:x:67:100:pop admin:/var/lib/pop:/bin/false perforce:x:68:60:perfoce admin:/var/lib/perforce:/bin/false nobody:x:65534:65534:nobody:/var/lib/nobody:/bin/bash bootcd:/ # ls l /var/tmp/etc/ total 4 drwxrxrx 2 root root 0 May 11 15:51 . drwxrwxrwt 6 root root 0 May 11 15:51 .. rwrr 1 root root 2852 May 11 15:51 passwd bootcd:/ # What else you can do with syscalls
Thanks • Questions?