Ai
1 Star 0 Fork 0

斗大的熊猫/external_libpcap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
chmod_bpf 760 Bytes
一键复制 编辑 原始数据 按行查看 历史
斗大的熊猫 提交于 2015-03-11 09:38 +08:00 . libpcap
#! /bin/sh
#
# Unfortunately, Mac OS X's devfs is based on the old FreeBSD
# one, not the current one, so there's no way to configure it
# to create BPF devices with particular owners or groups.
# This startup item will make it owned by the admin group,
# with permissions rw-rw----, so that anybody in the admin
# group can use programs that capture or send raw packets.
#
# Change this as appropriate for your site, e.g. to make
# it owned by a particular user without changing the permissions,
# so only that user and the super-user can capture or send raw
# packets, or give it the permissions rw-r-----, so that
# only the super-user can send raw packets but anybody in the
# admin group can capture packets.
#
chgrp admin /dev/bpf*
chmod g+rw /dev/bpf*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/androidsourcecode/external_libpcap.git
git@gitee.com:androidsourcecode/external_libpcap.git
androidsourcecode
external_libpcap
external_libpcap
master

搜索帮助