[Vtub] 在風真x拉普新Cover裡出現的程式碼
在這首新Cover中,在副歌的時候越聽越眼熟
試著查了一下發現,的確是Linux kernel的程式碼
內容是2012年Spotify的fork分支
https://github.com/spotify/linux/blob/6eb782fc88d11b9f40f3d1d714531f22c57b39f9/kernel/groups.c#L14
https://i.imgur.com/4nUtTUf.jpg
該段程式碼在今日的Linux kernel中已經被改寫過了
https://github.com/torvalds/linux/blob/b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3/kernel/groups.c#L15
不過為何是這段程式碼?
只能說meme很強大,以一種奇怪的方式在傳播
https://twitter.com/Foone/status/1456335007564238874?s=20&t=aOc2C9op0lZFIpaZdwY0Og
https://pbs.twimg.com/media/FDXwv62VEAYDKiX?format=png
https://www.reddit.com/r/lingling40hrs/comments/ggo0aa/fun_fact_this_code_is_part_of_the_linux_kernel/
https://i.redd.it/kaajy34n3tx41.png
以上呈現給想要深入追星的你
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.52.222.55 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/C_Chat/M.1655128353.A.680.html
推
06/13 21:55,
1年前
, 1F
06/13 21:55, 1F
→
06/13 21:59,
1年前
, 2F
06/13 21:59, 2F
不負責猜測,可能有誤
在Linux中會使用User, Group去區分權限
包括檔案、程序等都需要符合權限才能做更進一步的動作
在本篇程式碼中是在實作 struct group_info *groups_alloc(int gidsetsize) 這個函式
目的是配置 struct group_info 的記憶體
而 struct group_info 的功能是擴充只用User, Group比較粗略的權限
換句話說,可以擴增更細的權限,增加安全性
→
06/13 22:00,
1年前
, 3F
06/13 22:00, 3F
推
06/13 22:01,
1年前
, 4F
06/13 22:01, 4F
→
06/13 22:05,
1年前
, 5F
06/13 22:05, 5F
※ 編輯: deflife (27.52.222.55 臺灣), 06/13/2022 22:28:17
推
06/13 22:19,
1年前
, 6F
06/13 22:19, 6F
→
06/13 22:19,
1年前
, 7F
06/13 22:19, 7F
目前找到比較早的,時間在2011年
這篇文章會教你如何像個駭客
https://gigazine.net/gsc_news/en/20111115_hacker_typer/
然後另外補充在twitter上的簡易教學文
https://twitter.com/Scott_Helme/status/1176189667663863814?s=20&t=Y-mLxLDz-kNJ1QHzxcGNbg
這個可能是n大提到的影片,時間一樣為2011年
https://youtu.be/s0ii3Tcz6a8
無論是想當駭客的,或是想練打字的人都很推薦
推
06/13 22:37,
1年前
, 8F
06/13 22:37, 8F
※ 編輯: deflife (27.52.222.55 臺灣), 06/13/2022 22:43:34
→
06/13 22:39,
1年前
, 9F
06/13 22:39, 9F
推
06/13 22:46,
1年前
, 10F
06/13 22:46, 10F
※ 編輯: deflife (27.52.222.55 臺灣), 06/13/2022 22:59:30
※ 編輯: deflife (27.52.222.55 臺灣), 06/13/2022 23:00:50
推
06/13 23:20,
1年前
, 11F
06/13 23:20, 11F
推
06/13 23:31,
1年前
, 12F
06/13 23:31, 12F
→
06/13 23:57,
1年前
, 13F
06/13 23:57, 13F
推
06/14 19:07,
1年前
, 14F
06/14 19:07, 14F