Borromini has quit [Quit: Lost terminal]
adrianschmutzler has joined #openwrt-devel
ivanich has joined #openwrt-devel
Tapper has quit [Remote host closed the connection]
Tapper has joined #openwrt-devel
adrianschmutzler has quit [Quit: ~ Trillian - www.trillian.im ~]
xes_ has quit [Quit: bye..]
ivanich has quit [Quit: Konversation terminated!]
hbug_ has joined #openwrt-devel
hbug has quit [Ping timeout: 240 seconds]
<philipp64> aparcar[m]: anything taller than me and I chicken out...
tobleminer-tSYS has quit [Quit: AS4242423214]
tobleminer-tSYS has joined #openwrt-devel
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
th3g1z_ has quit [Ping timeout: 256 seconds]
xdarklight has quit [Ping timeout: 256 seconds]
xdarklight has joined #openwrt-devel
Misanthropos has quit [Ping timeout: 264 seconds]
th3g1z has joined #openwrt-devel
swegener has quit [Ping timeout: 256 seconds]
tchebb has quit [Ping timeout: 256 seconds]
snh has quit [Ping timeout: 256 seconds]
swegener has joined #openwrt-devel
snh has joined #openwrt-devel
tchebb has joined #openwrt-devel
Misanthropos has joined #openwrt-devel
_whitelogger has joined #openwrt-devel
Tapper has quit [Quit: Instantbird 1.6a1pre -- http://www.instantbird.com]
goliath has joined #openwrt-devel
_whitelogger has joined #openwrt-devel
Tapper has joined #openwrt-devel
novski has joined #openwrt-devel
_whitelogger has joined #openwrt-devel
<aparcar[m]> philipp64: oh surely I'm just watching
heffer_ has joined #openwrt-devel
heffer has quit [Ping timeout: 256 seconds]
heffer_ is now known as heffer
dorf_ has joined #openwrt-devel
dorf has quit [Remote host closed the connection]
valku has quit [Quit: valku]
RoboMWM has quit [Read error: Connection reset by peer]
whitewolf has quit [Ping timeout: 256 seconds]
Misanthropos has quit [Ping timeout: 256 seconds]
Swant has quit [Read error: Connection reset by peer]
Misanthropos has joined #openwrt-devel
heffer has quit [Ping timeout: 256 seconds]
heffer has joined #openwrt-devel
Swant has joined #openwrt-devel
whitewolf has joined #openwrt-devel
_whitelogger has joined #openwrt-devel
feriman has quit [Quit: WeeChat 3.0]
feriman has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
dedeckeh has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has quit [Changing host]
black_ant has joined #openwrt-devel
Tapper has quit [Ping timeout: 272 seconds]
Darkmatter66 has joined #openwrt-devel
bookworm has quit []
novski has left #openwrt-devel [#openwrt-devel]
bookworm has joined #openwrt-devel
madwoota has quit [Quit: .]
madwoota has joined #openwrt-devel
madwoota has joined #openwrt-devel
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #openwrt-devel
dedeckeh has quit [Quit: Connection closed]
Borromini has joined #openwrt-devel
rmilecki has joined #openwrt-devel
astylian has quit [Ping timeout: 264 seconds]
ivanich has joined #openwrt-devel
astylian has joined #openwrt-devel
dorf has joined #openwrt-devel
dorf_ has quit [Remote host closed the connection]
astylian has quit [Ping timeout: 256 seconds]
noltari has quit [Quit: Bye ~ Happy Hacking!]
hbug_ has quit [Ping timeout: 240 seconds]
noltari has joined #openwrt-devel
hbug_ has joined #openwrt-devel
astylian has joined #openwrt-devel
grift has quit [Quit: Bye]
grift has joined #openwrt-devel
grift has quit [Quit: Bye]
grift has joined #openwrt-devel
misterhsp has joined #openwrt-devel
<grift> (also an aside that package is 3 stable version behind)
<grift> i asked dango about what happens when packages add userid/groupid etc
<grift> and he pointed me to 3 functions for three scenarios
<grift> i tried to interpret these functions
<grift> take this scenario:
<grift> Or, if the package is installed by the user at run-time:
<grift> https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/base-files/files/lib/functions.sh#l247
<grift> i guess the add_group_and_user() does the editing of /etc/{group,passwd,shadow}
<grift> but in that function i don't see where it uses sed to do this
<grift> i know sed replaces /etc/group
<grift> but i dont know where in the code
<grift> the challenge is this:
<grift> [ 256.182929] audit: type=1400 audit(1610882949.577:5): avc: granted { create } for pid=3347 comm="sed" name="groupIgpbMl" scontext=u:r:sys.subj tcontext=u:r:file.conffile tclass=file
<grift> sed creates the new /etc/group with a random suffix and then the file gets renamed
<grift> i know that sed allows you to specify a suffix
<grift> so i would like to see where in the code i would need to change this so that sed creates these new /etc/group,passwd,shadow files with a predictable suffix
linzst has joined #openwrt-devel
<dorf> speaking of privoxy, it's probably better swapped out for tinyproxy with a luci UI.
<dorf> privoxy is bloatware that's mostly ineffective these days, given it doesn't process https.
<mangix> grift: that package badly needs modernization. i don't care for it.
<dorf> mangix: tinyproxy!
<dorf> eminently suited to openwrt.
dedeckeh has joined #openwrt-devel
<grift> ok i will look into tinyproxy but i would still like to figure out where those sed calls are to re-create updates /etc/group
<grift> every time i install a package that requires a new groupid/userid that function messes up the label of /etc/group/passwd and then stuff can not read those files
dorf has quit [Remote host closed the connection]
csrf has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
csrf has joined #openwrt-devel
dorf has joined #openwrt-devel
<grift> dorf any reason for taking tinyproxy over polipo you know of?
<dorf> grift: yeah, polipo is unmaintained
<dorf> tinyproxy also does more.
<grift> hmm i think i found it: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/base-files/files/lib/functions.sh#l353
<dorf> polipo was more or less abandoned around the same time Tor transitioned to the TorBrowser, fwiw.
<grift> thanks
madwoota has quit [Read error: Connection reset by peer]
<grift> so the issue here is that:
<grift> sed -i "s/$grp/$grp$delim$2/g" ${IPKG_INSTROOT}/etc/group
<grift> creates a new /etc/groupYRTYREYTR and then renames it to /etc/group
madwoota has joined #openwrt-devel
madwoota has quit [Changing host]
madwoota has joined #openwrt-devel
<grift> if i understand correctly this should address my issue:
<grift> sed -i'' "s/$grp/$grp$delim$2/g" ${IPKG_INSTROOT}/etc/group
Darkmatter66 has quit [Ping timeout: 256 seconds]
dorf has quit [Remote host closed the connection]
dorf has joined #openwrt-devel
Tost has joined #openwrt-devel
Borromini has quit [Quit: Lost terminal]
danitool has joined #openwrt-devel
linzst has quit [Quit: Leaving]
<grift> so it creates /var/log/tinyproxy.log with mode 666?
csrf has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
csrf has joined #openwrt-devel
SpaceRat^ has joined #openwrt-devel
SpaceRat has quit [Read error: Connection reset by peer]
SpaceRat^ is now known as SpaceRat
<dorf> let's have a look at that, grift.
<dorf> it's probably in case the user's not running as root, no?
<dorf> or maybe it's just lax for another reason.
<dorf> in any event, tinyproxy is screaming out for a luci-app :)
<dorf> also, nevermind re 666. I just realized I'm looking at openwrt's repo. no idea why it's 666.
<grift> well yes i think its running as user nobody? so that looks like corner cutting to allow nobody to write to /var/log/tinyproxy.log
<grift> but collatoral damage is that others can write as well i guess
<grift> anyway i am also looking into it further
<dorf> sure, user nobody privs, that's it.
<grift> instead probably better to chown
<dorf> sure
<grift> root.nobody 0760 or something
<grift> or nogroup whatever
<grift> using nobody.nogroup might not be optimal either though
<grift> too generic
<dorf> it's a log, why not just chown it to root?
<grift> but i am wrapping this up with selinux confinement
<grift> well then if tinyproxy runs as nobody it cant write it?
<dorf> except for the fact nobody couldn't write to it, yeah.
<grift> or "append" technically
<grift> question is why not use syslog?
<grift> as a logfile might fill up the tmpfs
<dorf> pretty much everything else runs as root, though. not sure if tinyproxy merits the nobody treatment. it might, but then so does a bunch of other stuff.
<grift> those days are gone
<grift> many services run with unpriv identities these day's
<dorf> if you're going to use syslog, make sure you run the logs at warn or error level, perhaps. otherwise it gets noisy in there.
dedeckeh has quit [Quit: Ping timeout (120 seconds)]
<grift> i dont mind a bit of noise besides you can just run logread with -Z 9
<dorf> at around 4 or 5 lines per connection, you'll soon mind :)
<grift> the wireguard cronjob also floods the logs
<grift> the issue with the nobody.nogroup idea is that its insecure if more than one service uses it
<grift> so ideally we'd have a tinyproxy uid
<grift> and then chown the log root.tinyproxy 0760
<grift> uig/gid
<dorf> yeah, that makes more sense. upstream tinyproxy does that.
Tapper has joined #openwrt-devel
grift has quit [Ping timeout: 240 seconds]
grift has joined #openwrt-devel
woodst0ck has joined #openwrt-devel
<f00b4r0> lynxis: ping
<lynxis> f00b4r0: pong
<f00b4r0> lynxis: why did you pull #2417? It's not functional and uses the awful u-boot based intermediary loader?
<lynxis> f00b4r0: the awful bootloader is gone.
<f00b4r0> in the PR it isn't.
<lynxis> f00b4r0: take a look into https://git.openwrt.org/?p=openwrt/staging/lynxis.git;a=shortlog;h=refs/heads/80211ad
<f00b4r0> lynxis: I see in your tree you've expunged. The problem is that the code you pulled doesn't use the recent bells and whistles for mikrotik, namely the platform driver
<f00b4r0> the partition scheme is wrong btw
<f00b4r0> partition0@0 starts at reg 0x80000
<f00b4r0> that PR wasn't ready for merge IMHO
<f00b4r0> I'm pretty sure robimarko wanted to revisit it.
<f00b4r0> led naming is also not matching the current style
<f00b4r0> and the commit message still lmentions the extra loader. Honestly I'd suggest you throw that back and maybe give robi a chance to polish it?
<lynxis> f00b4r0: I wasn't sure why robertmarko closed the PR. but some people of the openwrt community are using a couple of those devices. I would like to push the 60ghz stuff. I also have 5 of the 60ghz devices around.
<f00b4r0> https://git.openwrt.org/?p=openwrt/staging/lynxis.git;a=commitdiff;h=0cf4ce8cc4b31e4d6bce40d357c2d70c8a673f1c#patch3 this is also wrong
KGB-0 has joined #openwrt-devel
<lynxis> f00b4r0: sure there are still things to be moved and fixed up there.
<f00b4r0> lynxis: my understanding is he closed it to focus on hap-ac2, and planned to revisit once that was merged. Likewise for the sxtac
<lynxis> f00b4r0: do you know why there is mtd erase at all?
<f00b4r0> yes I do
<f00b4r0> :)
<f00b4r0> the mtd erase is called during sysupgrade when the device is booted from initramfs to clear the flash from extraneous kernel signatures
<f00b4r0> otherwise the bootloader might pick up a spurious signature from RouterOS and that will result in a brick.
<lynxis> the bootloader is scanning the whole partition for signatures?
<f00b4r0> please revert this from your tree, it's a collection of "don't do" for this target
<f00b4r0> yes
<f00b4r0> apparently uses "last match"
micmac1 has joined #openwrt-devel
micmac1 has quit [Client Quit]
<f00b4r0> i really wouldn't want to 1) have to submit patches to fix afterwards and 2) have people copy-pasting this to submit other devices. The canonical working example is the hap-ac2 and we tried to ask other submitters to follow it (rogerpueo did for the sxtac)
<f00b4r0> even the device name in DTS and makefile doesn't follow the semi-official pattern ;P
dedeckeh has joined #openwrt-devel
grift has quit [Quit: Bye]
grift has joined #openwrt-devel
<lynxis> f00b4r0: let's get the hap to upstream first.
<f00b4r0> lynxis: sure. Please just don't push the current lhg60 to master as it is.
Acinonyx has quit [Ping timeout: 256 seconds]
Acinonyx_ has joined #openwrt-devel
astylian has quit [Ping timeout: 256 seconds]
xes has joined #openwrt-devel
Borromini has joined #openwrt-devel
dorf_ has joined #openwrt-devel
dorf has quit [Remote host closed the connection]
astylian has joined #openwrt-devel
Acinonyx has joined #openwrt-devel
Acinonyx_ has quit [Ping timeout: 260 seconds]
grift has quit [Quit: Bye]
grift has joined #openwrt-devel
<grift> targeted tinyproxy in selinux-policy though: https://github.com/openwrt/packages/issues/14491
<grift> it can't even write the log file itself (only append)
<grift> err
Borromini has quit [Ping timeout: 256 seconds]
xes has quit [Quit: bye..]
xes has joined #openwrt-devel
SpaceRat^ has joined #openwrt-devel
SpaceRat has quit [Disconnected by services]
SpaceRat^ is now known as SpaceRat
Tost2 has joined #openwrt-devel
astylian_ has joined #openwrt-devel
Sebastiii has quit [Ping timeout: 256 seconds]
danitool has quit [Remote host closed the connection]
ivanich has quit [Remote host closed the connection]
astylian has quit [Ping timeout: 256 seconds]
Tost has quit [Ping timeout: 256 seconds]
misterhsp has quit [Ping timeout: 256 seconds]
DeX77 has quit [Ping timeout: 256 seconds]
danitool has joined #openwrt-devel
inkblotadmirer has joined #openwrt-devel
ivanich has joined #openwrt-devel
Sebastiii has joined #openwrt-devel
Sebastiii has quit [Excess Flood]
misterhsp has joined #openwrt-devel
heffer has quit [Ping timeout: 256 seconds]
heffer has joined #openwrt-devel
Sebastiii has joined #openwrt-devel
DeX77 has joined #openwrt-devel
inkblotadmirer has quit [Client Quit]
RoboMWM has joined #openwrt-devel
Tapper has quit [Ping timeout: 246 seconds]
Darkmatter66 has joined #openwrt-devel
grift has quit [Quit: Bye]
grift has joined #openwrt-devel
dedeckeh has quit [Quit: Ping timeout (120 seconds)]
Tapper has joined #openwrt-devel
gch9812133289452 has joined #openwrt-devel
Borromini has joined #openwrt-devel
__lore__ is now known as _lore_
Darkmatter66 has quit [Ping timeout: 260 seconds]
dedeckeh has joined #openwrt-devel
Darkmatter66 has joined #openwrt-devel
Darkmatter66 has quit [Ping timeout: 246 seconds]
ivanich has quit [Quit: Konversation terminated!]
dansan has quit [Ping timeout: 246 seconds]
dansan has joined #openwrt-devel
woodst0ck has quit [Quit: leaving]
valku has joined #openwrt-devel
astylian_ has quit [Ping timeout: 256 seconds]
<philipp64> grift: do we not count on groupmod and usermod being present for packaging?
<grift> no
<philipp64> hmm... seems busybox doesn't even include usermod/groupmod...
<dorf_> grift: shunting everything over to the syslog might not be such a bad idea.
Tost2 has quit [Ping timeout: 246 seconds]
<grift> dorf_ thats what i just did on my router
<dorf_> log level Connect looks like a sane default.
<grift> yes changed it to that
<dorf_> I'll get my coat :)
<dorf_> you can style the status page btw, but you need to apply styles within the tags.. inline css doesn't work.
<dorf_> grift: feel free to modify https://pastebin.ubuntu.com/p/rJmW5xbmDj/ to suit your needs.
<grift> thanks
<dorf_> fairly minimal.. something like that could be piped into a luci front end I guess.
<grift> i dont like how that paste service requires registration to download raw pastes
<dorf_> I never noticed before. annoying. copy and paste should be fine straight off the page.
<grift> yes i did that
gch9812133289452 has quit [Read error: Connection reset by peer]
gch9812133289452 has joined #openwrt-devel
Borromini has quit [Quit: Lost terminal]
eduardas has joined #openwrt-devel
astylian_ has joined #openwrt-devel
bonk1860 has joined #openwrt-devel
bonk1860 has quit [Quit: Connection closed]
misterhsp has quit [Quit: WeeChat 3.1-dev]
ivanich has joined #openwrt-devel
merbanan has quit [Ping timeout: 240 seconds]
ivanich has quit [Client Quit]
merbanan has joined #openwrt-devel
Borromini has joined #openwrt-devel
<swalker> updated openwrt/upstream, https://sdwalker.github.io/uscan/index.html
dedeckeh has quit [Quit: Connection closed]
feriman has quit [Quit: WeeChat 3.0]
feriman has joined #openwrt-devel
gch9812133289452 has quit [Read error: Connection reset by peer]
gch9812133289452 has joined #openwrt-devel
rmilecki has quit [Ping timeout: 256 seconds]
black_ant has quit [Ping timeout: 256 seconds]
Borromini has quit [Quit: Lost terminal]
hbug_ has quit [*.net *.split]
kakaka has quit [*.net *.split]
kontaxis has quit [*.net *.split]
kontaxis has joined #openwrt-devel
feriman has quit [Ping timeout: 246 seconds]
hbug_ has joined #openwrt-devel
kakaka has joined #openwrt-devel
linzst has joined #openwrt-devel
victhor has joined #openwrt-devel
linzst has quit [Quit: Leaving]
whyz has quit [Ping timeout: 272 seconds]
greearb has quit [Read error: Connection reset by peer]
greearb has joined #openwrt-devel
danitool has quit [Remote host closed the connection]
danitool has joined #openwrt-devel
gch9812133289452 has quit [Ping timeout: 256 seconds]
whyz has joined #openwrt-devel