Networking and Content Delivery
Amazon VPC
def:provisioning a logically isolated section
control over your virtual networking resources
customize the network configuration
multiple layers of security
VPC&Subnet
VPCs:
black13524 changed a month agoView mode Like Bookmark
Google summer of code week 1
This is my first gsoc report.
because this application is much related to
some muiti-process operations,I took me some time to understand.
The first problem is to use pdfork.
because fork() is disallowed in capability mode,
we use pdfork() to replace -- same sematics, but
returns a file descriptor.
cpid = fork(pfd,0);
black13524 changed 7 months agoView mode Like Bookmark
def
a super-server daemon on many Unix systems that provides Internet services.
functionality
inetd listens on designated ports used by Internet services such as FTP, POP3, and telnet.
The server program is invoked with the service socket as its standard input, output and error descriptors. After the program is finished,inetd continues to listen on the socket(with exceptions)
TFTPd
def:a server which supports the Internet Trivial File Transfer Protocol (RFC 1350)
black13524 changed 7 months agoView mode Like Bookmark
This the first week of google summer of code.
My mentor gave me a challenge:to boot a bhyve-vm on NFS,
therefore I decided to setup the NFS.
First We have to setup /etc/export,
/usr/nfs -alldirs -maproot=root -network 192.168.67.0 -mask 255.255.255.0
we must take more attention on bridge0 addm wlan0 addm tap0 ,because it connected
to our physical interface
# ifconfig tap0 create
black13524 changed 8 months agoView mode Like Bookmark
Some interesting codes
the whole code is the IPC solution I came up with which is replaced by one line of code setutxent()
details:
https://lists.freebsd.org/archives/soc-status/2024-July/000080.html
int
main()
{
cap_channel_t *cap_casper, *cap_net;
int s, sock1, sock, client_sock;
black13524 changed 8 months agoView mode Like Bookmark
Which function are used by getutxent?
Does getutxent open file for each call?
Please list each funtion that are called from getutxent until the libc/syscall that open files?
If it doesn’t open file each time, where the file is cached.
Which functions (more then one) can be used to cache this file.
What function is used to parse data from file.
getutxent uses getfutxent,setutxent,setutxdb
No,It only open file once. It only read when the FILE *uf points to null
the sequence of call:getutxent-getfutxent-setutxent()-setutxdb
black13524 changed 9 months agoView mode Like Bookmark
Framework
OpenMVG
m images into k clusters, each cluster
is under the memory limitation of the computer
Perspective-n-Point Problem
RANSAC Algorithm
Trifocal Relative Pose from Lines at Points
總結:提供了廣泛的測試集和問題定義
black13524 changed 9 months agoView mode Like Bookmark
Hello,
This is my first gsoc status report.Previous week
,I set up a development environment on Freebsd-15.0-current on baremetal.After that ,I started capsicumizing wall(), read some document about capsicum,like rights(4),capsicum(4)...and so on,and I struggled for a while to understand the multiprocess behavior in the program.I spent some time to create usable executable
Therefore,My mentor gave me a good reference application rwhod,which helped me alot understanding how to use pdfork.
Next week,I will start to capsicumize the next application,Tftpd,and fix any possible problem in wall().
complete work:
start capsicumizing wall()
black13524 changed 9 months agoView mode Like Bookmark
This is my first gsoc report.
because this application is much related to
some muiti-process operations,I took me some time to understand.
The first problem is to use pdfork.
because fork() is disallowed in capability mode,
we use pdfork() to replace -- same sematics, but
returns a file descriptor.
cpid = fork(pfd,0);
I spent some time to understand the behavior of it to make it successfully compiled.
black13524 changed 10 months agoView mode Like Bookmark
Freebsd boot process
Why compile kernel
for booting /running on hardware with limited resources
for testing a patch and provide feedback to devs
for diabling sth when there is a conflict
to support my unsupported hardware
Smashing The Stack For Fun And Profit
def:paper attempts to explain what buffer overflows are, and how their exploits work.
:::info
black13524 changed 10 months agoView mode Like 1 Bookmark
layer
infrastructure (hardware)
networking (node discovery, information propagation and verification)
consensus (proof of work, proof of stake)
data (blocks, transactions)
application (smart contracts/decentralized applications, if applicable)
abis
def:the standard way to interact with contracts
black13524 changed 10 months agoView mode Like Bookmark
why learn system programming
os hide hardware and provide programming API to control hardware
disk => file + directory
CPU => process + thread
os provide virturalization
communication between process , internet and copy-paste
every process has virtual memory
black13524 changed a year agoView mode Like Bookmark