cwbe coordinatez:
101
63540
63542
2109677
63692
8266882

ABSOLUT
KYBERIA
permissions
you: r,
system: public
net: yes

neurons

stats|by_visit|by_K
source
tiamat
K|my_K|given_K
last
commanders
polls

total descendants::13
total children::3
show[ 2 | 3] flat


Má niekto poriešené Xsane tak, aby nemuselo bežať pod rootom ? Zatiaľ sa mi to nechcelo riešiť, keby niekto mal, poprosím dať vedieť :)

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.




00000101000635400006354202109677000636920826688208267466
w
 w      16.12.2016 - 11:02:31 , level: 1, UP   NEW
v ubuntu to "bezi", lebo tam najskor udev spravi prava kompatibilne s pravami usera pod ktorym to bezi

tzn.
1. najdi device, z ktoreho chces scanovat (/dev/nieco)

2. vylistuj prava:
$ ls -la /dev/nieco
$ getfacl /dev/nieco (ak getfacl nemas, nemusis sa citit previnilo ani si ublizovat)

3. zisti v akych si skupinach
$ groups

4. porovnaj, alebo napis vystupy z 2 a 3 sem. popr aj napis, ake pouzivas distro :)

0000010100063540000635420210967700063692082668820826746608267956
divinorum
 divinorum      16.12.2016 - 23:43:33 , level: 2, UP   NEW
nope
akurát som zistil, že som neni v lp grupe, tak som sa pridal, reloadol shell a nič :)

$ xsane
modprobe: ERROR: could not insert 'parport': Operation not permitted
modprobe: ERROR: could not insert 'parport_pc': Operation not permitted
modprobe: ERROR: could not insert 'lp': Operation not permitted
Segmentation fault (bol uložený výpis pamäte)

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.

000001010006354000063542021096770006369208266882082674660826795608269243
w
 w      19.12.2016 - 23:54:35 , level: 3, UP   NEW
a 4. ?

00000101000635400006354202109677000636920826688208267466082679560826924308271675
divinorum
 divinorum      24.12.2016 - 10:58:45 (modif: 24.12.2016 - 11:12:54), level: 4, UP   NEW !!CONTENT CHANGED!!
No skenujem cez sieť, takže sa obávam, že v /dev to asi nebude :)

Ale podľa strace sa to snaží spraviť setuid a na tom to coredumpne, len ešte som to úplne nepochopil celé

inak distro je Fedora

edit: ešte inak - zabudnime na skener, proste nie je vôbec pripojený, neexistuje => xsane ide tiež pod userom do coredumpu

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.

0000010100063540000635420210967700063692082668820826746608267956082692430827167508272966
w
 w      28.12.2016 - 13:05:53 , level: 5, UP   NEW
to ze je nieco cez siet neznamena, ze to nemoze byt v dev ;)

$ lsof

a najst nazov procesu? ci vlastne to si videl aj v strace ?

00000101000635400006354202109677000636920826688208267008
ventYl
 ventYl      15.12.2016 - 18:24:12 , level: 1, UP   NEW
modprobe nejde zavesit na udev? alebo naaliasovat tak, aby sa loadlo same?

Shitty life is like radiation. You can sustain it for long time if daily doses are small.

0000010100063540000635420210967700063692082668820826700808267958
divinorum
 divinorum      16.12.2016 - 23:45:11 , level: 2, UP   NEW
toto je otázka na ktorú Ti naozaj neviem odpovedať :)
do UDEV resp. saned rules som akurát pridal zariadenie a nastavil mu group lp, jediná zmena je, že mi to rýchlejšie segfaultuje, ako rpedtým - inak stále totok:

$ xsane
modprobe: ERROR: could not insert 'parport': Operation not permitted
modprobe: ERROR: could not insert 'parport_pc': Operation not permitted
modprobe: ERROR: could not insert 'lp': Operation not permitted
Segmentation fault (bol uložený výpis pamäte)

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.

000001010006354000063542021096770006369208266882082670080826795808268020
ventYl
 ventYl      17.12.2016 - 10:45:25 , level: 3, UP   NEW
tieto 3 moduly sa snazi modprobnut aj ak ich modprobnes ty rucne pred jeho spustenim?

rad by som ale videl, kto presne tie moduly modprobuje (ci to robi XSane sam, alebo sa cez nejaky event driven hell ktory v konecnom dosledku spravil nepatricnu vec na nepatricnom mieste), pretoze je vysoko nestandardne chovanie pokusat sa modprobovat z Xovej aplikacie, u ktorej je skoro 100% pravdepodobnost, ze s pravami na modprobe bezat nebude.

Shitty life is like radiation. You can sustain it for long time if daily doses are small.

00000101000635400006354202109677000636920826688208267008082679580826802008268035
divinorum
 divinorum      17.12.2016 - 11:42:54 , level: 4, UP   NEW
môže byť, že sane-backend, alebo nejaká iná kokocina. Každopádne ak ich natiahnem ručne, nastane zmena. Vyzerá to tak, že segfault nesúvisí tak úplne s modprobe:

[root@div-laptop divinorum]# modprobe parport
[root@div-laptop divinorum]# modprobe parport_pc
[root@div-laptop divinorum]# modprobe lp
[root@div-laptop divinorum]# exit
[divinorum@div-laptop ~]$ xsane
lp parport_pc ppdev
Segmentation fault (bol uložený výpis pamäte)


výber z strace:

--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4322, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
shmget(0xeca86420, 4096, 0666) = 1835030
shmget(0xeca86421, 4096, 0666) = 1867799
shmget(0xeca86422, 4096, 0666) = 1900568
shmget(0xeca86423, 4096, 0666) = 1933337
shmget(0xeca86424, 4096, 0666) = 1966106
shmget(0xeca86425, 4096, 0666) = 1998875
shmget(0xeca86426, 4096, 0666) = 2031644
shmget(0xeca86427, 4096, 0666) = 2064413
shmget(0xeca86428, 4096, 0666) = 2097182
shmget(0xeca86429, 4096, 0666) = 2129951
shmget(0xeca8642a, 4096, 0666) = 2162720
shmget(0xeca8642b, 4096, 0666) = 2195489
shmat(1835030, NULL, 0) = 0x7f8ad0cd6000
shmat(1867799, NULL, 0) = 0x7f8ad0cd5000
shmat(1900568, NULL, 0) = 0x7f8ad0cd4000
shmat(1933337, NULL, 0) = 0x7f8ad0cd3000
shmat(1966106, NULL, 0) = 0x7f8ad0cd2000
shmat(1998875, NULL, 0) = 0x7f8ad0cd1000
shmat(2031644, NULL, 0) = 0x7f8ad0cd0000
shmat(2064413, NULL, 0) = 0x7f8ad0ccf000
shmat(2097182, NULL, 0) = 0x7f8ad0cce000
shmat(2129951, NULL, 0) = 0x7f8ad0ccd000
shmat(2162720, NULL, 0) = 0x7f8ad0ccc000
shmat(2195489, NULL, 0) = 0x7f8ad0ccb000
setuid(0) = -1 EPERM (Operation not permitted)
iopl(3) = -1 EPERM (Operation not permitted)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} ---
+++ killed by SIGSEGV (core dumped) +++

..ale že prečo, čo a komu sa snaží nastaviť setuid, tak to mi nie je vonkoncom jasné.

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.

0000010100063540000635420210967700063692082668820826700808267958082680200826803508268057
ventYl
 ventYl      17.12.2016 - 12:26:23 (modif: 17.12.2016 - 12:33:45), level: 5, UP   NEW !!CONTENT CHANGED!!
setuid aj podla vypisu strace, aj podla zdraveho rozumu (teda cohokolvek mimo winapi) mozes nastavit len sam sebe.

podla manpage setuid to vyzera tak, ze ak by ten proces mal CAP_SETUID (a z hlavy ti nepoviem, ci sa mu to da dat napr. pomocou xattr, je nutne aby mala nastaveny suid bit, alebo sa to musi riesit cez nejaky selinux), tento problem by zmizol.

vies ten strace hodit niekam na pastebin? aj s flagmi, ktorymi si ho spustal. nechce sa mi verit, ze by si xkova aplikacia riesila iopl a suid-root. skor to vyzera tak, ze niekde je konfiguracna chyba a nieco, co by malo byt suid root binarkou nou nie je a riadne si to tento stav nekontroluje.

edit: idealne ten strace pusti tak, nech tracuje aj vsetky child procesy. bude tam sice halda vystupu, ale aspon sa bude dat odhadnut, co to robi.

Shitty life is like radiation. You can sustain it for long time if daily doses are small.

000001010006354000063542021096770006369208266882082670080826795808268020082680350826805708271681
divinorum
 divinorum      24.12.2016 - 11:08:52 , level: 6, UP   NEW
strace -s 1024 xsane > strace.log 2>&1
https://paste.ee/p/ansZx

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.

00000101000635400006354202109677000636920826688208266954
michal tucny
 michal tucny      15.12.2016 - 16:54:18 , level: 1, UP   NEW
pamatam ze to tak byvalo, ale uz dlhsie pouzivam simple-scan (scanujem obcas). skusil som naistalovat aj xsane (0.999) a ide mi aj bez roota. pouzivam ubuntu studio postavene na ubuntu 16.04.1 LTS, a ako scanner nejaku multifunkcnu hp vec

0000010100063540000635420210967700063692082668820826695408266997
divinorum
 divinorum      15.12.2016 - 18:08:53 , level: 2, UP   NEW
simple-scan má ten istý problém, potebuje prtscan, modprobe a neviem z hlavy čo všetko :) no nič, tak budem skúmať, dík

1. Mathematics is the language of nature. 2. Everything around us can be represented and understood through numbers. 3. If you graph these numbers, patterns emerge. Therefore: There are patterns everywhere in nature.