164 posts • joined 17 Nov 2010
Turnkey security is hard and not always possible, sure. That doesn't mean we shouldn't try to get as close as we can.
You could think of a library that contains the fork/exec boilerplate and a globbing function. Some scripting languages in effect do this.
Alternatively, you could make a safer version of system() that only passes environment variables you explicitly request.
system("foo --bar *.baz", "EMACS", "TMPDIR");
or something like that.
I think the biggest problem is that system() is far more convenient than fork() + the exec*() family of functions.
Water flows downhill. You can rant at people not to do the wrong things until you're blue in the face, but you will only achieve reliable results when it is easier to it right than to do it wrong. At some level, this might be considered a bug in the design of the API.
Re: My /bin/sh points to dash .....
As Steven said, "patch anyway".
As an exercise in intellectual curiosity: You (and pretty much all other Linux users out there) are not vulnerable in any situation where a shell script is invoked without specifying the shell to execute it. In that case, you get the default shell, which is not bash.
However, it is also possible for the caller to explicitly specify bash as the shell to be used or for the script itself to use a shebang specifying bash. In many environments, doing either of those will get the dev in question hung, drawn and quartered, but still, such things do happen.
The only way to be certain it doesn't happen on your machine would be a complete audit of all code on there. That's probably not your plan, therefore the answer of "patch anyway".
Re: "plumbing the depths"
That's because when you dive that low, the pressure builds up and you need titanium plate rather than contem plate.
I've seen it used in the sense of 'load an entire file into memory in one read() action' as far back as the mid-80s -- and it might be older than that.
In general, using a regular dictionary in an attempt to disprove the existence of jargon is a mistake; the purpose of such dictionaries is to show only the regular, non-jargon, use of the language.
"Is capable of being tricked"
An enviable capability, to be sure.
Re: Case Sensitive File Systems...
I'm afraid your explanation of the executable files gaffe is factually incomplete. The reason is that Windows memory maps AND is incapable of allowing existing accesses to a deleted file to continue for the life of the relevant process, something that all flavors of Unix have been able to do since the 70s. As you say, there are advantages to memory mapping. There are no advantages to being incapable.
Re: I call semi-bollocks
"Could be a bit annoying when you've just plugged in a keyboard and have no other means of responding to the prompt."
Er, yes. One of the reasons I've never quite gotten the big rush to make keyboards USB. (Yeah, I know, standard connector is 0.3 cents cheaper). The things need exceptional handling in a number of places and this is one of them.
Still, as someone below has already suggested, you can pop up a passcode on the screen and require it to be input. Combine that with serial number lock-in for known good keyboards and you're good to go.
Alternatively, dedicate a USB port to the keyboard and only ask questions if a keyboard is plugged into another port. This should serve most desktops well. A laptop already has a built-in keyboard, so you have a channel to answer the popup. That in combination with a serial number lock should minimize the fuss on most laptops.
Re: I call semi-bollocks
I suppose the non-sensitive machine still works (doesn't really matter whether it gets pwned by a malicious document or a malicious drive -- you were prepared for it to get pwned)
But, yeah. Nasty.
How hard would be to modify the OS so it pops up a notice, "The device you just inserted wants to register as mass storage, a keyboard, and a network card. Which of these functions do you want to allow?"
Re: Surely this is illegal under Computer Abuse and Data Protection laws?
I'm guessing that would depend on your jurisdiction.
The Dutch anti-tracking law, for example, specifically states that it is the act of tracking that is being legislated, not any specific technology used for that purpose. So as far as I understand it, you'd be perfectly welcome to use these techniques instead of cookies as long as you only use them for purposes for which cookies would be allowed (that is, to implement essential functionality of the site, such as login; to gather anonymized usage statistics of the site; or to do anything else for which I have given explicit and informed consent.)
To Boldly Fly where Mighty Orbs Go Bust.
> Here's a link for anyone interested:
Thanks. That looks interesting.
It'd be interesting to think through how hard it would be to do a purely peer-to-peer facebook alternative. Kill the vampire in the middle, so to speak.
Most Android devices suffer from a double MitM attack (Manufacturer in the Middle).
As far as I know, there are two ways to avoid that. First, buy your device, don't get it via a carrier plan. That gets rid of the one middleman. For the other, either get one of the Nexus devices, or install Cyanogenmod.
Re: Perhaps he misread it
At least it was in the US. Otherwise he might have expected to get chips with his pin.
Re: Get your tin-foil hats here -- at these prices I'm cutting my own throat
Yup, the article talks about electron-positron pairs. The positrons would be the anti-matter bits.
So, to add to your fine list: possibility of making a hole to another dimension from which robots with positronic brains emerge. No matter what orders we shout at them, they shut down the facility, because it is dangerous to poor befuddled humans.
...wake up with a gigantic omelette on its corporate face.
So they have omelet for breakfast. No biggie to them.
The critical thing here is that they have a captive audience. People will write angry tweets, blogs and what have you and they will keep paying Adobe. Unless and until somebody writes a viable alternative to CS, they have no choice but to keep paying Adobe.
Andrew, thank you
for being a sane voice in a howling storm.
In Dutch you'd get either 'de hond zijn ballen' or 'de hond zijn kloten', but that wouldn't normally be used as an expression of praise. Once upon a time, there were some people who were using 'de tieten van Jezus' (the tits of Jesus) in a similar way, but it's been decades since I last heard that one.
Re: This article does feature my favourite (and only) welsh word
Makes sense to me. The stuff inside goes 'popty' and then the microwave says 'ping'.
I think we're partly talking past each other. I completely agree that most of the time, search is inconvenient for file access and the few times it is convenient, it's either because I or a a colleague messed up and something wasn't filed where it belonged or because I'm trying to make sense of a project I'm not familiar with. (And then I'm usually using find and/or grep, not the Unity file search.)
Where I find search to be superior to menus is in program startup and occasionally as a replacement for deep menu navigation. This is a very fast way to get to programs I don't use frequently enough to pin. So, windows key;c;a;enter and Calibre starts up. Windows key;g;enter and gjiten is there and so on.
Things that I do use frequently enough to pin are even faster. WIndows key + 7 and emacs is up. Still other stuff I fire up from a shell; xdg-open foo.pdf and so on. The whole system works well enough I don't need much pinned. (nautilus, firefox, write, calc, settings, shell, emacs, xpad -- and the write should actually be removed, I hardly ever fire that up from the bar.)
I agree that discoverability isn't as good as a classical menu system. I don't care, that's startup costs. I use computers intensively and startup costs are negligible compared to the total, so the relevant criterion to me is the speed I can eventually reach. And between fast application access and not having to drag windows around, I think Unity saves me an hour every week.
That's not for everybody of course. Somebody who spends their time in Gimp is going to be using the mouse far more often than I do. Even office software has many features that are easier with the mouse than the keyboard. So, no I'm not claiming this is a universal solution; I'm certainly not saying that everybody should switch. I am saying that it works for me and that works amazingly well for me.
Re: The fixation with 'serarch' for everything
Why search for everything? Because it fits well with a keyboard-centric way of working. Unity is pretty meh unless you're a keyboard freak, then it effortlessly outstrips everything else out there.
The funny bit about Unity is that it will work reasonably well for a beginner (no clutter to get lost in) and it shines for the experienced keyboarder. The ground between beginner and expert and the ground for mouse-based experts is left, well, not bare, but certainly not covered by anything very inspiring either.
Re: Foot, meet bullet
All it says is that any coffee they happen to serve will not contain rat-droppings...
Oh, I agree. Some days you're a little slow, you say. Well, some days, I pun poorly. So there. 'Tis the nature of me, especially before the coffee...
I love LaTeX and use it a lot, but...
TeX is a programming language. .tex files, including LaTeX ones, are executable content. If you blindly process a .tex I send you, I can read from and write to everywhere in the file system you have access.
I'm aware of the history of at least two file formats called RTF, both going back several decades. In this case, I was doing simple acronym punnery.
I've always thought Rich Text Format was misnamed.
It should have been Windows Text Format.
Re: Tinfoil hat
But at least it is a stylish cop, right?
Re: I don't get it
I'd agree with you, except I ran KDE and Gnome 2 in parallel that way for a year or two and every last single update caused trouble that required console-jockeying to resolve -- making this Not Recommended for anybody who isn't a console jockey. I swear they forbid their QA to test setups like that.
"The United States government has to get out of the business – if it were ever in the business – has to get out of the business of fucking with encryption standards," Clarke said.
No, Mr. Clarke. The United States government would have to be seen and believed to have gotten out of that business. Regardless of your political stance on the whole matter, that is going to be a Herculean task in the current environment.
Re: "too expressive in some ways, with features like closures..."
Yes, but it takes a programmer to understand that and the speaker being quoted was an analyst.
Re: An OS function?
True. OTOH, I usually expect/want exactly zero of these sites to use the mic or cam. Clicking OK for the one or two exceptions per year I can handle.
Re: ..market share... graph is strange
Also, what is reported is market share, not actual units. In a market that is changing overall size, that's likely misleading.
All in all, quite the Soviet style statistics.
Maybe, but checking that your model does not go bonkers when the land masses are redistributed seems like a good idea. He could have just drawn a random map, or used xkcd's idea of the Earth on its side, but he picked Tolkien instead. Works for me.
Re: Well done India
As you wish. I still respect those who can build stuff well beyond those who sit on wads of largely inherited cash.
I'm sure that goes on already. The sheer fact that other countries do not (yet) have their Edward Snowdens doesn't mean there isn't anything to report.
Re: Not really
Actually, there's several methods for handling that out there already. Punycode has been mentioned in the comments here, there's idnccd and some more. Alternatively, a browser could have a configuration where it changes the background color behind non-ASCII characters to some configurable color. If you're worried about such attacks, you set that color to bright red or something loud like that and your HSBC will stand out like a sore thumb.
You could make that fully general by allowing assignment of colors to arbitrary Unicode ranges.
It's not actually a 100%. If the attack depends on things that changed since XP, it won't work on XP and you can breathe a sigh of relief. If the attack uses features and code common between XP and the later Windows, it will work on XP and the bad guys score.
Yes, that is really freedom. You might want to look up the word in a dictionary.
I'm not suggesting you should become a Marxist --I have no need for Marxists-- but freedom means that others have to the right to disagree or to read the stuff so as to form a reasoned opinion or even to read it because it makes them laugh. Their right, their choice, their time. None of your business.
And, once we're done frothing at the mouth, just how likely do you think it is that papers about astronomical pictures will be 'Marxist screed' anyway?
There have been tides for all those years, just not the liquid water ones that you're thinking of. The Earth's Moon actually stretches the solid Earth, the oceans and the atmosphere. The rock tides are so small you can't see them without instruments, the air tides are also are invisible to the unaided human observer, so we tend to focus on the water tides as 'the tides'. But the other ones are still there.
Similarly for Phobos and Mars. There is no liquid water to make water tides, but there are both rock tides and air tides. And as already shown above, they're actually comparable in size to the ones we have here.
Or in other words, the forces are there and they will do things; the mere absence of liquid water won't make them go away.
Certainly, but they might not have a non-flamey version lying on the shelf. Different device, likely different shape and so on. So that's the solution you want to work towards, but not an immediate one.
Until then the question becomes, which is the greater risk: the aircraft crashing and rescue being hindered by absence of an ELT, or the aircraft catching fire by the presence of one. Note that on-board fire-fighting kit proved insufficient to the task -- you really don't want this happening in flight. Give the rarity of crashes, reducing the risk of fire is almost certainly the smarter choice.
Actually, I have an early '90s book on X11 programming upstairs somewhere and it starts with the expectation of the original X11 team that in two to three years understanding would have advanced to the point where X11 would be outdated. That doesn't sound like they wanted their work to be enshrined as some never-to-be-touched-again ideal. If anything, they're probably disappointed it took so long.
Now maybe Wayland is the better successor, maybe Mir is. I have not studied either in depth, so no opinion. I do find it hard to imagine that the existence of two alternatives can be a bad thing at this point, though.
Re: Who said it was natural?
And they'd be aiming for something, say, the size of a small moon?
Re: Bad idea
"The more they overthink the plumbing, the easier it is to stop up the drain."
Re: just 'cause
Read silent_count's message again: He never said he was talking about a profit tax. Import duties, for example, would fit his bill.
Now, if you want to argue this runs afoul of all sorts of trade agreements, then you might have a point.
Re: Another technique
The tricky bit is avoiding false positives -- read: pissed-off customers.
Re: Cutting it?
You did bring your lightsaber, right?
Re: But hang on
11 year cycle. Distance between min and max is a half-cycle.
11/2 = 5.5.
2013 ish + 5.5 = 2018 ish
- Product round-up Ten excellent FREE PC apps to brighten your Windows
- Analysis Pity the poor Windows developer: The tools for desktop development are in disarray
- Review Tough Banana Pi: a Raspberry Pi for colour-blind diehards
- Product round-up Ten Mac freeware apps for your new Apple baby
- Chromecast video on UK, Euro TVs hertz so badly it makes us judder – but Google 'won't fix'