LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2014, 11:28 PM   #31
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,605

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438

Applied on SlackBuilds, thanks to Mancha
 
1 members found this post helpful.
Old 02-14-2014, 12:34 AM   #32
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
Well Willysr I really enjoy the mate desktop you did. and added it to one of my favorites. keep up the good work.
that fix can be handle with a simple command .
 
Old 02-14-2014, 03:00 AM   #33
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,605

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
True, but it would be better if it's fixed during the build, so user doesn't need to do additional efforts
 
Old 02-14-2014, 12:31 PM   #34
scarrs
Member
 
Registered: Sep 2013
Location: Thunder Bay, Ontario
Distribution: Slackware 14.1 x86_64
Posts: 33

Rep: Reputation: Disabled
Slackbuild help?

QUOTE:

"The patch I prepared corrects things. Place it in the "patches" dir, make the following change to the SlackBuild script, and rebuild:"

(removed code)

mancha,

Could you please provide the complete and edited Slackbuild? I am somewhat a novice when it comes to editing a Slackbuild script. I have re-downloaded the patch and am awaiting instructions...

--scarrs
 
Old 02-14-2014, 01:12 PM   #35
mancha
Member
 
Registered: Aug 2012
Posts: 357

Rep: Reputation: Disabled
Quote:
Originally Posted by scarrs View Post
Could you please provide the complete and edited Slackbuild? I am somewhat a novice when it comes to editing a Slackbuild script. I have re-downloaded the patch and am awaiting instructions...
Hi.

Willy has commited my fixes to his SBo devel branch but they've not yet been pushed to the WWW repo.

Meantime, you can get the files directly from his branch. Go to your build dir (wherever you have libgksu.SlackBuild) and run:

Code:
$ wget -O libgksu.SlackBuild "http://slackbuilds.org/cgit/slackbuilds/plain/libraries/libgksu/libgksu.SlackBuild?h=willysr&id=9dd7ddc97975d3a"
Then switch to the patches sub-dir and download the patch:

Code:
$ cd patches
$ wget -O libgksu-2.0.12-x86_64-path.diff "http://slackbuilds.org/cgit/slackbuilds/plain/libraries/libgksu/patches/libgksu-2.0.12-x86_64-path.diff?h=willysr&id=9dd7ddc97975d3a"
Re-build and you should be good to go.

--mancha
 
Old 09-16-2014, 09:01 PM   #36
scarrz
LQ Newbie
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: slackware-current
Posts: 19

Rep: Reputation: Disabled
Post thank-you, but

Quote:
Originally Posted by mancha View Post
make the following change to the SlackBuild script, and rebuild:

Code:
--- libgksu.SlackBuild.SBo
+++ libgksu.SlackBuild
@@ -79,6 +79,11 @@ patch -p0 < $CWD/patches/libgksu-2.0.12-
 patch -p1 < $CWD/patches/libgksu-2.0.12-notests.patch
 patch -p1 < $CWD/patches/libgksu-2.0.12-automake-1.11.2.patch
 
+# Patch from mancha
+if [ "$ARCH" = "x86_64" ]; then
+  patch -p1 < $CWD/patches/libgksu-2.0.12-x86_64-path.diff
+fi
+
 touch NEWS README
 libtoolize --force --copy --install
 autoreconf
--mancha
sorry for being a bit of a newb when it comes to editing .SlackBuild scripts but what I did was append the above code to the end of the file and during the build process it asked me which file to patch so I looked at the file it was trying to patch and pointed the build script to that file on my system. it tried to patch the file while I was building the SlackBuild script and I thought this was wrong so I skipped the build. So, where exactly do I make the changes in the .SlackBuild file to have it build properly?

I would really like to have this result:
Code:
gksu thunar
and have it ask for the user password and execute properly.

Code:
gksudo thunar
works just fine but the package is called gksu and I would prefer to use this command.

sorry for my late reply but I was just going over a few things on my system and decided to install gksu on my slackware-current x86_64 system and had the same error reproduced so I would like to fix it. I looked over the thread and have downloaded all the appropriate files and dropped them a folder called shadow with a subdir of patches with your patch as well as the unused subdir there and the patch in it. I am anxiously awaiting your reply.

--G
 
Old 09-17-2014, 12:30 AM   #37
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,605

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
This problem has been fixed long time ago by Pat himself in other package (shadow)
Quote:
patches/packages/shadow-4.1.5.1-i486-3_slack14.1.txz: Rebuilt.
Shadow 4.1.5 addressed a tty-hijacking vulnerability in "su -c"
(CVE-2005-4890) by detaching the controlling terminal in the non-PAM
case via a TIOCNOTTY request. Bi-directional protection is excessive
and breaks a commonly-used methods for privilege escalation on non-PAM
systems (e.g. xterm -e /bin/su -s /bin/bash -c /bin/bash myscript).
This update relaxes the restriction and only detaches the controlling
tty when the callee is not root (which is, after all, the threat vector).
Thanks to mancha for the patch (and the above information).
you can now issue gksu in normal way and it should work
 
Old 09-26-2014, 04:18 AM   #38
scarrz
LQ Newbie
 
Registered: Aug 2014
Location: Thunder Bay, Ontario
Distribution: slackware-current
Posts: 19

Rep: Reputation: Disabled
Thanks for your reply... I am on slackware-current and am using custom packages from the dropline gnome enviornment including shadow, libgksu, and gksu. the error persists. for now, I am issuing gksudo and everything works fine. I have a pretty good system set up with XFCE and am working on a bare-bones dropline gnome install (gnome doesn't load yet) but all the packages I installed work wonderfully with the XFCE desktop. perhaps I will start a new thread (here) and see what the devs have to say over there. unless of course you have a solution...
 
Old 09-26-2014, 06:36 AM   #39
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,605

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
I don't have dropline installed, so i can't really give a solution
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] anyone else having update problems with Mint15 Mate & 16 Cinnamon or mate RC 1sweetwater! Linux Mint 2 08-05-2014 07:42 PM
[SOLVED] Synaptic Package Manager error - Linux Mint 13 Mate super_68 Linux Mint 6 06-28-2013 04:18 AM
su vs gksu (who is doing what to whom?) taylorkh Linux - Security 2 06-14-2013 08:08 AM
[SOLVED] Adding MATE and got this error dsplayer14 Linux - Software 2 12-16-2011 11:21 PM
Error while running gksu Ephracis Linux - Software 0 10-27-2004 06:09 AM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration