+ -
当前位置:首页 → 问答吧 → 请问大虾:ioctl调用为什么会报错:operation not permitted?

请问大虾:ioctl调用为什么会报错:operation not permitted?

时间:2007-08-26

来源:互联网

某款cpu平台下的关于网桥(bridge.o模块)的linux内核源代码,在另一款cpu平台下编译出来,两款cpu均是intel Xscale芯片,为

什么前者平台下运行良好,后者在应用程序通过ioctl调用网桥模块时,会报错operation not permitted?多谢大虾指点!!      

作者: woshimiaojing   发布时间: 2007-08-26

是root权限么

或者说程序具有root权限么      

作者: AIKO_sex   发布时间: 2007-08-26

应该不是权限的问题      

作者: woshimiaojing   发布时间: 2007-08-26

复制内容到剪贴板
代码:
Allow administration of IP firewall, masquerading and accounting
  Allow setting debug option on sockets/
  Allow modification of routing tables
  Allow setting arbitrary process / process group ownership on
    sockets
  Allow binding to any address for transparent proxying
  Allow setting TOS (type of service)
  Allow setting promiscuous mode
  Allow clearing driver statistics
  Allow multicasting
  Allow read/write of device-specific registers
  Allow activation of ATM control sockets
以上任意一条

      

作者: AIKO_sex   发布时间: 2007-08-26

那么这么多allow,我应该去哪里设置呢,或者有无相关资料可以查询,我是菜鸟,恳请AIKO_sex大虾,不吝执教:)      

作者: woshimiaojing   发布时间: 2007-08-26