Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-18-2013 08:51 AM
I found this very useful documentation of packet filtering in BB10. The problem is now, how do I gain O_RDWR access to the /dev/pf device? I noticed there is no su or root profile available?
01-18-2013 09:20 AM
01-18-2013 09:49 AM
The documentation comes from QNX, which is used widely outside of BB10, so what you see there sometimes covers things which are not available to third-party apps running on BB10.
In this case, check the permissions of the device in question:
$ ls -l /dev/pf nrw-rw---- 1 root nto 0 Jan 18 09:45 /dev/pf
Owned by root, r/w access from the nto group, neither of which is anything we can get at.
If there is some documented API that explicitly says a BB10 app can use it to access the PF stuff, or if you can find a command line utility that's got "world" executable executable permissions, then you could use that. I'm 99.5% sure you won't find it as this is the sort of thing that's tightly controlled in BB10 to preserve the system security.
I'm equally confident you'd see it covered by a "restricted app permission" and since I see no such permission listed, I think you can give up on this possibility.
If you have a need for it (and unless someone tells us I'm wrong about this), you could file a Feature Request in the Jira issue tracker describing your use case.