FreeBSD

共 688 篇文章。

New DragonFly/Net/Open/FreeBSD CVSup mirror

• SysAdmin

I have set up a mirror for the major BSD software, especially DragonFly/Free/Open/NetBSD and KAME at my personal server, tarsier.delphij.net for about two weeks. Today I have annouced that on kernel@dfly and Liam Foy has added it to the official download list.

Some cvsweb and other related site is ongoing. I’m very pleased that I can support BSD related software, no matter joining their development, or providing mirrors for wider spread.

参与评论

When to validate whether program is accepting potentially malicious input?

• Security

What is a privilege elevation? It meant that someone who (maliciouslly) obtain higher privilege through some method that is not predicated by programmer.

In order to prevent it, we should avoid giving unnecessary privileges, and validate all input. However, in a imperfect world, just validating everything is not enough, since there are too many things that can not be validated easily.

On most Unix systems, we have a “set uid” bit that can allow subsequent process to run under other credentials. This, however, opens an window that we can potentially allow malicious code to be injected into the system, to obtain higher privileges.

阅读全文… ( 本文约 320 字,阅读大致需要 1 分钟 )

skeljail implemented in the RCng way

• Security

I have finally got skeljail implemented through the RCng way. After some test I will post the patch for review.

A skel jail is a jail that share essential binaries/libraries with the base system (optionally, other base template if you want) through mount_nullfs.

参与评论

The biggest prime number?

• Life

It seems that Kris Kenneway likes prime numbers so much that he written it into our ports/INDEX files’ commit logs. Today I found that gfans has posted a knowledge about the largest prime number, which is 41st Meissen prime number.

参与评论

About integrating my WARNS=6 cleanups to FreeBSD tree

• Development

I started the work almost four months ago, but I have lost all my work last month. Therefore, I’m trying to integrate as much as possible whenever possible. The current workflow is:

  • Bump WARNS
  • Fix errors
  • Testdrive on almost all T1 platform I can touch
  • Commit
阅读全文… ( 本文约 105 字,阅读大致需要 1 分钟 )

NetBSD gots impressive result in their system call result

• Kernel

A post on tech-kern has suggested that NetBSD has better performance on several aspects. I think FreeBSD should take some of their ideas. What’s more, I believe it’s more important to have something that is unique in FreeBSD, not doing what’s the equivalent because “Solaris have this” :-)

参与评论

For those who just migrate from RedHat Linux...

• Cheatsheets

Just for fun:

Add the following to your /etc/csh.cshrc:
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
set prompt = ‘[%B%n@%m%b] %B%~%b%# ’
set autolist
bindkey “^W” backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward

And execute:
sed -i.bak -E s/set\ prompt/#set\ prompt/g /root/.cshrc

Then re login.

参与评论