LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 07-30-2015, 03:03 AM   #196
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097

That might be a concern as honestly the RNG being at a predictable state could be a security issue with keys. By randomizing the RNG at primary boot, you remove any possibility of the RNG being possibly, even remotely, used to predict the security keys for ssh.

Good find ttk. I wonder if other distributions do similar?

Last edited by ReaperX7; 07-30-2015 at 03:07 AM.
 
Old 07-30-2015, 10:22 AM   #197
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by ReaperX7 View Post
I wonder if other distributions do similar?
RHEL and its derivatives do it, at least:

Code:
# find /etc/rc.d/* -type f -exec grep -H random-seed {} \;
/etc/rc.d/rc.sysinit:if [ -f "/var/lib/random-seed" ]; then
/etc/rc.d/rc.sysinit:        cat /var/lib/random-seed > /dev/urandom
/etc/rc.d/rc.sysinit:        [ "$READONLY" != "yes" ] && touch /var/lib/random-seed
/etc/rc.d/rc.sysinit:        chmod 600 /var/lib/random-seed
/etc/rc.d/rc.sysinit:        dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=4096 2>/dev/null
/etc/rc.d/init.d/halt:touch /var/lib/random-seed
/etc/rc.d/init.d/halt:chmod 600 /var/lib/random-seed
/etc/rc.d/init.d/halt:action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null
 
Old 07-30-2015, 10:27 AM   #198
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
But (unless I'm missing the point) rc.S runs on every boot. It's S for System Initialisation, not S for Single User. If you copy the code into rc.M, the code will be run twice.
 
1 members found this post helpful.
Old 07-30-2015, 12:00 PM   #199
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by 55020 View Post
But (unless I'm missing the point) rc.S runs on every boot. It's S for System Initialisation, not S for Single User. If you copy the code into rc.M, the code will be run twice.
Thank you, 55020. I didn't realize that. Thought S was "single user".

I withdraw my request :-)
 
Old 07-31-2015, 04:00 AM   #200
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It's kinda both. S starts up everything before M starts and initializes runlevel 2~5. S still loads single user via K.
 
Old 07-31-2015, 10:05 AM   #201
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
The ultimate point is that I can pre-populate my new install's /etc/random-seed after running setup but before first boot, and rc.S will mix the provided entropy into /dev/urandom before rc.sshd generates system ssh keys.

I'm writing up some scripts that do things like this now -- patch configuration files and rc scripts, inject entropy, install random scripts not worth packaging, etc. Basically all the little tasks which are hard to remember to do before first boot and/or a pain to do manually in the minimal busybox environment.

Last edited by ttk; 07-31-2015 at 10:06 AM.
 
Old 07-31-2015, 11:32 PM   #202
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If it improves security, even a bit by making the keys more randomized to prevent ssh security problems, then +1. Plus, it's a small unintrusive edit. Nice job ttk.
 
Old 08-14-2015, 03:57 PM   #203
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Seeing the problems Networkmanager appears to cause it would be good if Wicd in extra gets updated to the latest stable release, which is 1.7.3. See https://launchpad.net/wicd/+download.
 
Old 08-14-2015, 04:08 PM   #204
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by moesasji View Post
Seeing the problems Networkmanager appears to cause it would be good if Wicd in extra gets updated to the latest stable release, which is 1.7.3. See https://launchpad.net/wicd/+download.
I'm running Slackware on two laptops, and three desktops. One installation of 14.1, one install of Slackware-current, and three Slackware64-current installs. All units use Networkmanager. All units are functioning well with no issues to report.
 
Old 08-14-2015, 04:15 PM   #205
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by hitest View Post
All units are functioning well with no issues to report.
Seems very hit and miss. One of my laptops suddenly refuses to connect to a WPA2 encrypted network, while working fine on other networks. If you look in the forum I'm not the only one as upstream doesn't test with dhcpd.

Anyway the comment was primarily that after 2.5 year there is an update to Wicd which is included in /extra, so worth updating.
 
Old 08-14-2015, 04:22 PM   #206
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,533

Rep: Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515Reputation: 8515
Quote:
Originally Posted by moesasji View Post
Seeing the problems Networkmanager appears to cause it would be good if Wicd in extra gets updated to the latest stable release, which is 1.7.3. See https://launchpad.net/wicd/+download.
I'm thinking it would be better to just throw that one away at this point.
 
3 members found this post helpful.
Old 08-14-2015, 04:32 PM   #207
aaazen
Member
 
Registered: Dec 2009
Posts: 358

Rep: Reputation: Disabled
Quote:
Originally Posted by comet.berkeley View Post
Dosfstools 3.0.28 is out in the Git repository.

https://github.com/dosfstools/dosfstools/releases


Older version 3.0.27 is a pure bug fix release that fixed a bug I found on a dos file system during fsck.fat:

Code:
...
Bad short file name ().
Auto-renaming it.
Renamed to
...
Okay so there is some progress in current, we are now up to version 3.0.26 of dosfstools

If we are not going to version 3.0.27 nor 3.0.28, can we at least have the following patch applied from version 3.0.27?

https://github.com/dosfstools/dosfst...18f4820ea08e77

Here is a copy of the patch:
Code:
--- src/check.c.orig    2014-03-07 09:35:11.000000000 -0800
+++ src/check.c 2015-08-14 14:08:56.499652136 -0700
@@ -959,9 +959,9 @@
        fs_read(offset, sizeof(DIR_ENT), &de);
     else {
        /* Construct a DIR_ENT for the root directory */
+       memset(&de, 0, sizeof de);
        memcpy(de.name, "           ", MSDOS_NAME);
        de.attr = ATTR_DIR;
-       de.size = de.time = de.date = 0;
        de.start = htole16(fs->root_cluster & 0xffff);
        de.starthi = htole16((fs->root_cluster >> 16) & 0xffff);
     }
 
Old 08-15-2015, 09:35 AM   #208
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by volkerdi View Post
I'm thinking it would be better to just throw that one away at this point.
What was the issue that was plaguing the newer Wicd release?
 
Old 08-17-2015, 05:23 AM   #209
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
LibRaw has been updated to LibRaw 0.17, exiv2 has been updated to Exiv2 0.25

http://www.exiv2.org/changelog.html

http://www.libraw.org/download#stable
 
Old 08-17-2015, 11:13 AM   #210
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,233

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
nettle-3.1.1 is available since 24/04/2015
 
  


Closed Thread



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] vdso_time error after current updates chrissi29 Slackware 4 03-20-2013 04:09 AM
xfce 4.10 and latest updates to current BCarey Slackware 7 07-16-2012 10:56 AM
wget error with new current updates fogpipe Slackware 2 07-14-2012 03:16 PM
Massive updates in -current mlangdn Slackware 53 07-01-2012 08:15 AM
Slackware current updates today! neo Slackware 2 04-22-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration