Compare commits

...
3 Commits
Author SHA1 Message Date
Luxferre 0e39c4eea3 updated readme about suid 2026-08-15 07:51:29 +03:00
Luxferre 4c794b9a9b Merge branch 'master' of https://code.luxferre.top/luxferre/nvbright 2026-08-15 07:49:10 +03:00
Luxferre 8b828877d5 added suid 2026-08-15 07:48:16 +03:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ $(TARGET): $(SRC)
install: $(TARGET) install: $(TARGET)
$(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) $(INSTALL) -m 4755 $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
uninstall: uninstall:
rm -f $(DESTDIR)$(BINDIR)/$(TARGET) rm -f $(DESTDIR)$(BINDIR)/$(TARGET)
+1 -1
View File
@@ -46,7 +46,7 @@ sudo make install
## Usage ## Usage
Because `nvbright` requires direct access to `/dev/mem` to map GPU MMIO registers and executes `/usr/sbin/pciconf`, it must be run as root (e.g., with `sudo` or `doas`). Because `nvbright` requires direct access to `/dev/mem` to map GPU MMIO registers and executes `/usr/sbin/pciconf`, it must be run as root (e.g., with `sudo` or `doas`). If using the standard `make install` procedure, the binary is installed with setuid bit, so it may be run by regular users.
### Command syntax ### Command syntax