Comments (4)
Technically, it needs the CAP_NET_RAW
capability. I suspect that system utilities are able to get this capability automatically via setuid or a similar mechanism, but that's not really practical for development purposes.
from bluez-rs.
How can i use sudo to execute de start_discovery function?
from bluez-rs.
Ah, indeed, other tools simply rely on bluez
which entirely runs as root.
from bluez-rs.
@EduardoPD1921 sudo
can only be used to elevate the privileges of an entire process, not just one function. If you have a larger program that you'd rather not elevate, you might need a SUID helper or something like that.
from bluez-rs.
Related Issues (16)
- Panic on `set_local_name` HOT 1
- remove_device uses wrong command
- Cannot set device class HOT 3
- How to get simple name from device advertisment HOT 3
- Are GATT services and characteristics implemented? HOT 4
- How to connect to bluetooth devices without pairing HOT 2
- Question about sending commands HOT 1
- I cannot compile bluez HOT 4
- New release? HOT 1
- Why sleep 50ms in the main loop? HOT 1
- Panic after device connect HOT 2
- IoCapability values are incorrect HOT 1
- Allow duplicate entries to be discovered HOT 3
- Could not find matching version of bitvec HOT 1
- Need examples of peripheral mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-rs.